Search found 2637 matches

by Roberthh
Sun Apr 25, 2021 6:19 pm
Forum: ESP32 boards
Topic: Error running ver 1.15 on ESP32-S2
Replies: 10
Views: 622

Re: Error running ver 1.15 on ESP32-S2

I do not have a S2 device yet, but the port is told to have REPL through UART. I'll check when I have a S2 board.
by Roberthh
Sun Apr 25, 2021 5:16 pm
Forum: ESP8266 boards
Topic: Connecting to WiFi
Replies: 8
Views: 427

Re: Connecting to WiFi

_ is just a legal variable name and often used as temp vatiable name.
by Roberthh
Sun Apr 25, 2021 5:13 pm
Forum: ESP8266 boards
Topic: Wemos D1 mini boot.py bricked (ESP8266)
Replies: 8
Views: 358

Re: Wemos D1 mini boot.py bricked (ESP8266)

Does the device manager show some unknown devices? In that case re-installing the ch340 device driver could help.
by Roberthh
Sun Apr 25, 2021 4:39 pm
Forum: ESP8266 boards
Topic: Wemos D1 mini boot.py bricked (ESP8266)
Replies: 8
Views: 358

Re: Wemos D1 mini boot.py bricked (ESP8266)

Yup. If it does not turn up as USB device, there is little you can do with software. So it looks like a hardware fault. The Wemos D1 Mini is generally pretty robust. You definitely cannot break it with wrong code. But that does not mean it cannot break. Checking the USB connector on the board is may...
by Roberthh
Sun Apr 25, 2021 3:26 pm
Forum: ESP8266 boards
Topic: Connecting to WiFi
Replies: 8
Views: 427

Re: Connecting to WiFi

The loop I use is: for _ in range(10): if nic.isconnected(): # check if the station is connected to an AP print('\nnetwork config:', nic.ifconfig()) break print('.', end='') time.sleep(1) else: print(" Connect attempt timed out\n")
by Roberthh
Sun Apr 25, 2021 2:56 pm
Forum: ESP8266 boards
Topic: Wemos D1 mini boot.py bricked (ESP8266)
Replies: 8
Views: 358

Re: Wemos D1 mini boot.py bricked (ESP8266)

That's bad. There are a few options: a) The USB cable broke. Try another cable b) The device switched to another COM port. Did you look into the device manager, if there are any changes when you plug and unplug the board? c) Try anther USB port on the PC d) reboot the PC (unlikely to help, but ....)...
by Roberthh
Sun Apr 25, 2021 1:29 pm
Forum: ESP8266 boards
Topic: Wemos D1 mini boot.py bricked (ESP8266)
Replies: 8
Views: 358

Re: Wemos D1 mini boot.py bricked (ESP8266)

You can clear the memory using esptool.py and the option erase_flash: python3 esptool.py -p <uart_port_name> erase_flash or with the Makefile from the repository, calling make erase which in turn calls esptool.py. Then you can start over by uploading the firmware and setting up the file system#s con...
by Roberthh
Sun Apr 25, 2021 6:19 am
Forum: ESP8266 boards
Topic: Connecting to WiFi
Replies: 8
Views: 427

Re: Connecting to WiFi

You have written: print(nic.active) print(nic.status) Which shows, which type of object e.g. nic.active is. But you surely wanted to the the return value of the calls, so you have to call the functions by writing. print(nic.active()) print(nic.status()) About nic.isconnected() returning False: Conne...
by Roberthh
Sun Apr 25, 2021 6:16 am
Forum: ESP8266 boards
Topic: A small edit to .connect() method
Replies: 1
Views: 253

Re: A small edit to .connect() method

About Returning None: The function connect() does not return a value by intention. According to Python rules, the return value is then None. About a possible return value: Since the connection does not happen immediately and connect() is non-blocking, the return value would almost always be False (o...
by Roberthh
Sat Apr 24, 2021 7:23 pm
Forum: ESP32 boards
Topic: Error running ver 1.15 on ESP32-S2
Replies: 10
Views: 622

Re: Error running ver 1.15 on ESP32-S2

The GENERIC module is different from the GENERIC_S2 module. There are no pre-built images for the S2 yet, and the support is pretty basic, as far as I understand. I was able to build that firmware, but I have no board yet to test it. It's in the mail (or to be precise: at the customs office of Liege...