diff --git a/plugins/mqtt/command/read_write.c b/plugins/mqtt/command/read_write.c index de07f169..25d7a9d2 100644 --- a/plugins/mqtt/command/read_write.c +++ b/plugins/mqtt/command/read_write.c @@ -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;