Search found 5 matches
- Thu Oct 15, 2020 6:33 pm
- Forum: General Discussion and Questions
- Topic: Using machine.deepsleep() with uasyncio
- Replies: 6
- Views: 2785
Re: Using machine.deepsleep() with uasyncio
Could you post an example code snippet? i am expecially interested how to handle wakeup from deepsleep
- Thu Oct 15, 2020 10:21 am
- Forum: General Discussion and Questions
- Topic: Using machine.deepsleep() with uasyncio
- Replies: 6
- Views: 2785
Re: Using machine.deepsleep() with uasyncio
Thank you for your reply. What would be then a better way to achieve this behavior ? I wish to for Eg: Read sensor data every 1 hour and store it to a file and every 10 hours upload that data via MQTT to some server. In between the device needs to be in deepsleep.. I am using a Pycom Gpy as the deve...
- Wed Oct 14, 2020 9:58 am
- Forum: General Discussion and Questions
- Topic: Using machine.deepsleep() with uasyncio
- Replies: 6
- Views: 2785
Using machine.deepsleep() with uasyncio
I an scheduling two coroutines. One which reads sensor data and the other uploads this sensor data via MQTT. I am using uasyncio and sched libraries as mentioned here https://github.com/peterhinch/micropython-async/blob/master/v3/docs/SCHEDULE.md#7-use-in-synchronous-code I read the data from the se...
- Thu Dec 01, 2016 5:11 am
- Forum: ESP8266 boards
- Topic: UART issue
- Replies: 6
- Views: 5233
- Wed Nov 30, 2016 8:27 am
- Forum: ESP8266 boards
- Topic: UART issue
- Replies: 6
- Views: 5233
UART issue
Hello , I am trying to run the following code on the ESP8266 Node MCU board. I have put this code in main.py. The input is being taken from a laptop running Cutecom as a terminal program. The issue is uart.read() doesn’t wait to receive any data from serial (Rx). The Rx and Tx pins are connected to ...