diff --git a/@postman/src/main.cpp b/@postman/src/main.cpp index e8e200c..2bed24b 100644 --- a/@postman/src/main.cpp +++ b/@postman/src/main.cpp @@ -369,9 +369,12 @@ void setup() { Serial.println("Error initializing ESP-NOW"); return; } +#if defined(ESP8266) esp_now_set_self_role(ESP_NOW_ROLE_COMBO); +#endif esp_now_register_send_cb(onDataSent); esp_now_register_recv_cb(onDataReceive); + // AddressBook * book = lib.getBookByTitle(ADDRESSBOOK_TITLE); if (book == NULL) {