Search found 5 matches

by peterkz
Sat Mar 24, 2018 9:51 am
Forum: ESP8266 boards
Topic: Long running scripts not working
Replies: 5
Views: 1382

Re: Long running scripts not working

Thank you! That was it! I dropped all led blinking stuff and now it has been running without a hitch for 10 hrs.
by peterkz
Sat Mar 17, 2018 10:02 pm
Forum: ESP8266 boards
Topic: Long running scripts not working
Replies: 5
Views: 1382

Re: Long running scripts not working

Here's some sample code that will stop after a couple of hours. import machine, time from machine import Pin from machine import UART import urequests as requests import gc def debug_log(message): print(message) #for now def error_log(message): debug_log(message) def push_sensor_value(server, dbname...
by peterkz
Sun Mar 11, 2018 8:16 pm
Forum: ESP8266 boards
Topic: Long running scripts not working
Replies: 5
Views: 1382

Long running scripts not working

I have an ESP8266 that reads CO2 sensor data over the UART0 and then posts the data to a local InfluxDB server (using urequests library). This works fine for a couple of hours but then stops. Since my sensor is connected to UART0 (in 9600) it is hard to debug while the script is running. Has anyone ...
by peterkz
Mon Mar 05, 2018 10:54 am
Forum: ESP8266 boards
Topic: Wemos D1 Mini UART RX pin in MicroPython?
Replies: 5
Views: 2101

Re: Wemos D1 Mini UART RX pin in MicroPython?

Thank you! The sensor transmits at 9600 so it should be fine I guess. Will have a look!
by peterkz
Mon Mar 05, 2018 8:10 am
Forum: ESP8266 boards
Topic: Wemos D1 Mini UART RX pin in MicroPython?
Replies: 5
Views: 2101

Wemos D1 Mini UART RX pin in MicroPython?

Hi! I am trying to talk to a MH-Z19B CO2 sensor over serial UART from Micropython on a Wemos D1 mini. For debugging I would like to be connected to the REPL of the D1 mini while talking serial to the sensor (via computer USB cable). I have trouble receiving data on the RX pin though. Transmitting se...