Version 1.14

Added encrypting messages.
This commit is contained in:
2023-01-22 12:22:34 +03:00
parent ef625740d9
commit 619b3a6cdf
2 changed files with 6 additions and 4 deletions

View File

@ -29,7 +29,7 @@ typedef struct
std::vector<espnow_message_t> espnowMessage;
const String firmware{"1.13"};
const String firmware{"1.14"};
String espnowNetName{"DEFAULT"};
@ -99,6 +99,7 @@ void setup()
WiFi.setSleepMode(WIFI_NONE_SLEEP);
myNet.begin(espnowNetName.c_str());
// myNet.setCryptKey("VERY_LONG_CRYPT_KEY"); // If encryption is used, the key must be set same of all another ESP-NOW devices in network.
myNet.setOnBroadcastReceivingCallback(onBroadcastReceiving);
myNet.setOnUnicastReceivingCallback(onUnicastReceiving);