atsuyaw / RPIoTlogger

Raspberry Pi PicoW to get sensor output and post API for InfluxDB
MIT License
0 stars 0 forks source link

Replace sleep() for posting data #4

Open atsuyaw opened 3 weeks ago

atsuyaw commented 3 weeks ago

time.ticks_diff() can be used to fire posting events frequently. This helps to operate other tasks to drive external device depending on the monitoring situation, i.e. temp, during waiting to post. https://micropython-docs-ja.readthedocs.io/ja/v1.13ja/library/utime.html#utime.ticks_diff