Version 1.13

Added encrypting messages.
This commit is contained in:
2023-01-22 12:38:53 +03:00
parent 7f51f05eb8
commit bcda1c9ea5
2 changed files with 6 additions and 4 deletions

View File

@ -30,7 +30,7 @@ typedef struct
std::vector<espnow_message_t> espnowMessage;
const String firmware{"1.12"};
const String firmware{"1.13"};
String espnowNetName{"DEFAULT"};
@ -102,6 +102,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);