Search found 6 matches
- Fri Nov 19, 2021 3:35 pm
- Forum: ESP32 boards
- Topic: Using wlan.config(reconnects = 5) sometimes triggers OSError: Wifi Invalid Mode
- Replies: 6
- Views: 4289
Re: Using wlan.config(reconnects = 5) sometimes triggers OSError: Wifi Invalid Mode
Thanks for the reply which, I can confirm, fixes the problem. I have many years of bare metal programming experience starting with Intel 8008's right through to Microchip PICS. In these systems the programmer (aka me) is responsible for everything from the first power-on reset. With ESP32's we do ha...
- Wed Nov 17, 2021 1:46 am
- Forum: ESP32 boards
- Topic: Using wlan.config(reconnects = 5) sometimes triggers OSError: Wifi Invalid Mode
- Replies: 6
- Views: 4289
Using wlan.config(reconnects = 5) sometimes triggers OSError: Wifi Invalid Mode
I am using a TTGO-T18 V3.0 with Micropython V1.17 and came across a strange problem. I access my WiFi using fairly standard code shown below. if wlan == None: # indicates we have not been here before so create print_debug("Trying to connect to WiFi " + SSID) wlan = network.WLAN(network.STA_IF) wlan....
- Thu Nov 11, 2021 4:01 am
- Forum: ESP32 boards
- Topic: is time.sleep() interruptible?
- Replies: 2
- Views: 1489
Re: is time.sleep() interruptible?
Thanks for the reply. I had forgotten that the ESP32 has four hardware timers. Yes, using the hardware timers is a better solution and I have already implemented it. I did also carry out a few tests to see if time.sleep() is interruptible and the answer is yes. I hit the interrupt input with 200Hz f...
- Wed Nov 10, 2021 12:20 pm
- Forum: ESP32 boards
- Topic: is time.sleep() interruptible?
- Replies: 2
- Views: 1489
is time.sleep() interruptible?
Short of reading the source code I cannot see a direct reference to the information I need. I have an ESP32 with a single pin interrupt enabled. My main loop reads the time using time.gmtime() for specific hours and minutes combinations to send collected data to an MQTT server. I added a single time...
- Thu Nov 04, 2021 3:12 am
- Forum: ESP32 boards
- Topic: print() output not always displayed - timing issue?
- Replies: 0
- Views: 720
print() output not always displayed - timing issue?
I have been using MicroPython and CircuitPython on various platforms for a while now but I needed something small so I chose the ESP32 in the form of a WROVER-B. To get the project moving I wrote a simple program to connect to my wifi and used a few print() calls to assist in the debugging. I notice...
- Sun Jan 25, 2015 12:19 pm
- Forum: Development of MicroPython
- Topic: Making an I2C slave device.
- Replies: 0
- Views: 2765
Making an I2C slave device.
I want to make a low-speed I2C device that takes various analogue readings and which can be read by an Rpi which is on my network. Taking readings and putting them into a data structure is the easy part and I have that working already. Now I need task that will respond to the I2C commands. The task ...