Search found 55 matches

by ebolisa
Sat Oct 30, 2021 10:39 pm
Forum: ESP8266 boards
Topic: [SOLVED] Crashing/freezing every few hours
Replies: 29
Views: 30297

Re: [SOLVED] Crashing/freezing every few hours

You need to call wdt_feed() in your application before the 10 seconds run-out. Not sure I understand that. If I call wdt_feed() before the counter reaches 10 then, machine.reset() never gets executed. So, the whole code is null. In my code I call machine.reset() via timer every 15 minutes and solve...
by ebolisa
Sat Oct 30, 2021 12:07 pm
Forum: ESP8266 boards
Topic: [SOLVED] Crashing/freezing every few hours
Replies: 29
Views: 30297

Re: Crashing/freezing every few hours

## Simple software WDT implementation wdt_counter = 0 def wdt_callback(): global wdt_counter wdt_counter += 1 if (wdt_counter >= 10): machine.reset() def wdt_feed(): global wdt_counter wdt_counter = 0 wdt_timer = machine.Timer(-1) wdt_timer.init(period=1000, mode=machine.Timer.PERIODIC, callback=la...
by ebolisa
Tue Oct 19, 2021 2:15 pm
Forum: General Discussion and Questions
Topic: Question on MQTT
Replies: 1
Views: 999

Question on MQTT

Hi, I subscribe to a less than 10 digit text to control relays. I noticed that if the incoming message contains a large string, > 50 characters, the code crashes. This doesn't happen using the same code on a Linux box. A work around is to limit the incoming string. The library used is upmqttsimple o...
by ebolisa
Fri Sep 10, 2021 5:43 am
Forum: Programs, Libraries and Tools
Topic: uPing - Ping library for MicroPython
Replies: 29
Views: 135135

Re: uPing - Ping library for MicroPython

It fails on nano rp2040 connect with:

Code: Select all

network config: ('192.168.1.230', '255.255.255.0', '192.168.1.1', '192.168.1.1')

Traceback (most recent call last):
  File "<stdin>", line 126, in <module>
  File "<stdin>", line 66, in ping
OSError: [Errno 128] ENOTCONN
by ebolisa
Tue May 11, 2021 3:57 pm
Forum: General Discussion and Questions
Topic: Convert str to float
Replies: 4
Views: 4318

Re: Convert str to float

Thank you!
by ebolisa
Tue May 11, 2021 3:24 pm
Forum: General Discussion and Questions
Topic: Convert str to float
Replies: 4
Views: 4318

Convert str to float

Hi all, The following code returns 4030.332 instead of 4030.33158 on an ESP32 and Rpi Pico. What happens to the rest of the digits? Using Python on Linux/Windoze, the code returns correctly all digits. TIA lat = '4030.33158' lat = float(lat) # lat = lat / 100 # lat = str(lat) print(type(lat)) print(...
by ebolisa
Thu Aug 20, 2020 10:01 am
Forum: General Discussion and Questions
Topic: ESP32 lib
Replies: 6
Views: 3439

Re: ESP32 lib

Ok, thank you again.
by ebolisa
Thu Aug 20, 2020 9:20 am
Forum: General Discussion and Questions
Topic: ESP32 lib
Replies: 6
Views: 3439

Re: ESP32 lib

That's great, thank you!!

Could you pls educate me a bit more on machine.memxx()?
by ebolisa
Thu Aug 20, 2020 8:16 am
Forum: General Discussion and Questions
Topic: ESP32 lib
Replies: 6
Views: 3439

Re: ESP32 lib

Cannot import it if it's missing. That's why I'm looking for a place where I can download it.

Code: Select all

>>> import esp32
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: no module named 'esp32'
>>> 
by ebolisa
Wed Aug 19, 2020 6:57 pm
Forum: General Discussion and Questions
Topic: ESP32 lib
Replies: 6
Views: 3439

ESP32 lib

Hi, I'd like to check the internal temp of my ESP32 devise but I don't have the esp32.py lib installed. Where can I find it? TIA EDIT: >>> uos.uname() (sysname='esp32_LoBo', nodename='esp32_LoBo', release='3.2.24', version='ESP32_LoBo_v3.2.24 on 2018-09-06', machine='ESP32 board with ESP32') >>> hel...