esp_now_send error codes
Posted: Sat Mar 12, 2022 11:05 am
Using the ESP_NOW_ROLE_COMBO, esp_now_send returns -3. This is not a very helpful or descriptive error message, and I can't find them defined anywhere. Does anyone know what this means? I know it's supposed to return ESP_NOW_SEND_SUCCESS or ESP_NOW_SEND_FAIL, but neither of these are defined for me, so I can't use them in my code to even compare them to esp_now_send's return value.
I'm running PlatformIO with Visual Studio Code, but I'm having the same issues on ArduinoIDE. To be clear, what I'm really looking for is an answer to "What do esp_now_send's return values mean" and not really looking to debug my code, which I'll gladly do myself once I can figure out what it's telling me. Thanks!
FWIF, my includes are as follows:
I'm running PlatformIO with Visual Studio Code, but I'm having the same issues on ArduinoIDE. To be clear, what I'm really looking for is an answer to "What do esp_now_send's return values mean" and not really looking to debug my code, which I'll gladly do myself once I can figure out what it's telling me. Thanks!
FWIF, my includes are as follows:
Code: Select all
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <espnow.h>
#include <stdbool.h>