|
|
|
@ -17,6 +17,7 @@ void EmptyI2CSensor::update(){
|
|
|
|
uint8_t data = 10;
|
|
|
|
uint8_t data = 10;
|
|
|
|
this->read_register(0x0, &data, (size_t)0x1);
|
|
|
|
this->read_register(0x0, &data, (size_t)0x1);
|
|
|
|
ESP_LOGI(TAG, "sensor output: %d", data);
|
|
|
|
ESP_LOGI(TAG, "sensor output: %d", data);
|
|
|
|
|
|
|
|
this->publish_state((float)data);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|