Search found 141 matches

by davef
Sun Jan 10, 2021 11:49 pm
Forum: ESP8266 boards
Topic: machine.SoftSPI not available for ESP-01 (esp8266)
Replies: 4
Views: 554

Re: machine.SoftSPI not available for ESP-01 (esp8266)

Which ESP-01 variant do you have? I use some ESP-01S units and looking at the soft.SPI doc it looks like you need GPIO0, GPIO2 and GPIO4. Maybe GPIO4 could be re-named to the TX or RX pin, which means you would not be able to use the UART. I have moved up a notch and getting some ESP-07S which have ...
by davef
Fri Jan 08, 2021 8:29 pm
Forum: ESP32 boards
Topic: ESP-Now support for ESP32 (and ESP8266)
Replies: 58
Views: 3980

Re: ESP-Now support for ESP32 (and ESP8266)

Ah, let me focus a bit harder! Sorry, my previous post was incorrect ... it did not reflect that I was actually doing a re-connect in the code I was testing. I have gone through the process as Peter suggested, line by line, and the re-connection works. Also, my program now works at home-base, maybe ...
by davef
Fri Jan 08, 2021 6:56 pm
Forum: ESP32 boards
Topic: ESP-Now support for ESP32 (and ESP8266)
Replies: 58
Views: 3980

Re: ESP-Now support for ESP32 (and ESP8266)

Following on from your example if I then try to bring up the network interface: >>> sta_if = network.WLAN(network.STA_IF) >>> sta_if.active(True) True >>> sta_if.ifconfig(('192.168.10.99', '255.255.255.0', '192.168.10.1', '8.8.8.8')) >>> sta_if.isconnected() False >>> I will now check the official i...
by davef
Fri Jan 08, 2021 9:26 am
Forum: ESP32 boards
Topic: LED pin on
Replies: 4
Views: 267

Re: LED pin on

At the link I posted and near the bottom of that page download
esp32-wroom-32_datasheet_en.pdf
that might answer a few of your questions.
by davef
Fri Jan 08, 2021 5:32 am
Forum: ESP32 boards
Topic: ESP-Now support for ESP32 (and ESP8266)
Replies: 58
Views: 3980

Re: ESP-Now support for ESP32 (and ESP8266)

For the ESP32 ESP-NOW image on page 1: I would like to run WiFi for two tasks and ESP-NOW for one task. Rather than leave my datalogger continuously connected to a hotspot I thought I would only connect when I want to get the time and when I want to send a log. Starting from a hard-reset (ESP32) the...
by davef
Thu Jan 07, 2021 9:45 pm
Forum: ESP32 boards
Topic: LED pin on
Replies: 4
Views: 267

Re: LED pin on

A link https://docs.espressif.com/projects/esp-idf/en/latest/esp32/hw-reference/esp32/get-started-devkitc.html is on the page that you linked to. Then down that page there is a link to the schematics. No LED shown on pin2. Also be careful some GPIO can not be used, see "strapping pins". My ESP-01S d...
by davef
Wed Jan 06, 2021 3:06 am
Forum: ESP32 boards
Topic: ESP-Now support for ESP32 (and ESP8266)
Replies: 58
Views: 3980

Re: ESP-Now support for ESP32 (and ESP8266)

Copy and paste someone else's code :) Thanks for correcting.
by davef
Wed Jan 06, 2021 12:10 am
Forum: ESP32 boards
Topic: ESP-Now support for ESP32 (and ESP8266)
Replies: 58
Views: 3980

Re: ESP-Now support for ESP32 (and ESP8266)

ESP8266 in STA mode: w0 = network.WLAN(network.STA_IF) w0.active(True) mac = w0.config('mac') print(mac) mac = ubinascii.hexlify(network.WLAN().config('mac'),':').decode() print(mac) b'\x18\xfe4\xde\xea\xf3 18:fe:34:de:ea:f3 The same ESP8266 in AP mode: w0 = network.WLAN(network.AP_IF) w0.active(Tru...
by davef
Tue Jan 05, 2021 11:42 pm
Forum: ESP32 boards
Topic: ESP-Now support for ESP32 (and ESP8266)
Replies: 58
Views: 3980

Re: ESP-Now support for ESP32 (and ESP8266)

Now I know there are separate MAC addresses for AP and STA, I thought is was a "hardware' value for that particular board. Not using any encryption, Both units are on channel 1, they all seem to default to that. A machine.reset() will reinitialise the hardware (including wifi interfaces) and possibl...
by davef
Tue Jan 05, 2021 9:12 pm
Forum: ESP32 boards
Topic: ESP-Now support for ESP32 (and ESP8266)
Replies: 58
Views: 3980

Re: ESP-Now support for ESP32 (and ESP8266)

Just some observations on the ESP32 image: 1) can't use AP send command Traceback (most recent call last): File "<stdin>", line 1, in <module> File "local.py", line 23, in <module> OSError: (-12396, 'ESP_ERR_ESPNOW_IF') line 23: e.send(peer, "pump off", True) Don't really care, but in STA mode on th...