Search found 8 matches

by robbyr
Fri Jan 12, 2018 9:46 am
Forum: ESP32 Arduino
Topic: ESP-NOW bi-directional communications --- send & receive
Replies: 12
Views: 28081

Re: ESP-NOW bi-directional communications --- send & receive

ESPNOW_WIFI_IF is only defined in: esp-idf/examples/wifi/espnow/main/espnow_example.h and no where in arduino-esp32. /* ESPNOW can work in both station and softap mode. It is configured in menuconfig. */ #if CONFIG_STATION_MODE #define ESPNOW_WIFI_MODE WIFI_MODE_STA #define ESPNOW_WIFI_IF ESP_IF_WIF...
by robbyr
Fri Jan 12, 2018 7:45 am
Forum: ESP32 Arduino
Topic: ESP-NOW bi-directional communications --- send & receive
Replies: 12
Views: 28081

Re: ESP-NOW bi-directional communications --- send & receive

Well, a small success in figuring this out. Turns out the esp-now code in the arduino examples that I copied did not check for: ESP_ERR_ESPNOW_IF : current WiFi interface doesn't match that of peer That is the error I'm getting. typedef struct esp_now_peer_info { uint8_t peer_addr[ESP_NOW_ETH_ALEN];...
by robbyr
Fri Jan 12, 2018 7:03 am
Forum: ESP32 Arduino
Topic: ESP-NOW bi-directional communications --- send & receive
Replies: 12
Views: 28081

Re: ESP-NOW bi-directional communications --- send & receive

Not off topic at all --- thanks. I remembered reading something about that somewhere, but did not remember where. I don't really understand why MAC addresses need to be changed, though. I don't suppose that 0 or 1 added to MAC is the "state" that is mentioned here: https://github.com/espressif/esp-i...
by robbyr
Fri Jan 12, 2018 5:58 am
Forum: ESP32 Arduino
Topic: ESP-NOW bi-directional communications --- send & receive
Replies: 12
Views: 28081

Re: ESP-NOW bi-directional communications --- send & receive

Thanks. I've been looking at that for a while now and also the "esp-now_user_guide_.pdf", but some of the terminology, names and methods seem very different. Haven't quite figured out what is meant by "state" --- is that wifi mode like AP or STA? I have a 'supposedly' sucessful pair from the slave b...
by robbyr
Thu Jan 11, 2018 7:26 pm
Forum: ESP32 Arduino
Topic: ESP-NOW bi-directional communications --- send & receive
Replies: 12
Views: 28081

Re: ESP-NOW bi-directional communications --- send & receive

Re-posting in ESP Arduino
Robby
by robbyr
Thu Jan 11, 2018 6:03 am
Forum: ESP32 Arduino
Topic: ESP-NOW bi-directional communications --- send & receive
Replies: 12
Views: 28081

Re: ESP-NOW bi-directional communications --- send & receive

Tried esp_now_add_peer in 'slave' module, now I get: Send Status: Not sure what happened I set: peer.peer_addr to mac address of master peer.channel to same channel as master ?? not sure if this should be different peer.encrypt to 0 Wondering if I should delete this post and repost in ESP32 Arduino ...
by robbyr
Thu Jan 11, 2018 5:35 am
Forum: ESP32 Arduino
Topic: ESP-NOW bi-directional communications --- send & receive
Replies: 12
Views: 28081

Re: ESP-NOW bi-directional communications --- send & receive

No I didn't. I'll try that right now.

I just realized that I posted this in the wrong forum --- SDK instead of Arduino. Can I change that?

Thanks, Robby
by robbyr
Thu Jan 11, 2018 4:21 am
Forum: ESP32 Arduino
Topic: ESP-NOW bi-directional communications --- send & receive
Replies: 12
Views: 28081

ESP-NOW bi-directional communications --- send & receive

Hello, I'm trying to get 2 ESP32 Dev Boards to talk to each other. I started with the master-slave examples from the Arduino IDE, and got that working fine. In that example 'master' is set to STA, and 'slave' is set to AP. 'Master' sends a message to 'slave', and 'slave' prints the message to serial...