devicehive / esp8266-firmware

DeviceHive esp8266 firmware. Control hardware via clouds with DeviceHive!
MIT License
166 stars 50 forks source link

GY-271 Constant reporting #52

Closed dmigo closed 6 years ago

dmigo commented 6 years ago

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?

Nikolay-Kha commented 6 years ago

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.