mirror of
https://github.com/emqx/neuron.git
synced 2026-10-19 14:23:05 +08:00
Fix mqtt plugin to call neu_dvalue_get_bit for NEU_DTYPE_BIT
This commit is contained in:
@@ -153,8 +153,8 @@ static int wrap_read_response_json_object(neu_fixed_array_t * array,
|
||||
break;
|
||||
}
|
||||
case NEU_DTYPE_BIT: {
|
||||
bool value;
|
||||
neu_dvalue_get_uint8(val, &value);
|
||||
uint8_t value;
|
||||
neu_dvalue_get_bit(val, &value);
|
||||
json->tags[i - 1].t = NEU_JSON_BIT;
|
||||
json->tags[i - 1].value.val_bit = value;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user