devicehive/esp8266-firmware

GY-271 Constant reporting

dmigo opened this issue · 1 comments

dmigo commented

There is a GY-271 module connected to my nodemcu.
Devicehive playground allows me to read the data from i2c using the i2c/master/read command.
What I want is to get the data as a constant flow. Is it possible to constantly read i2c? What is the best approach on that?

Hello, you can send requests continuously from your software or you would need to modify firmware to make it send results as notification continuously. You can find sample of such modification in this branch - https://github.com/devicehive/esp8266-firmware/tree/climate (but it was more complicated - it put device into sleep mode between notifications.