Version 1.24

Added encrypting messages.
This commit is contained in:
2023-01-22 12:46:58 +03:00
parent 74c6279f50
commit 1c306e031b
2 changed files with 6 additions and 4 deletions

View File

@ -34,7 +34,7 @@ void setupWebServer(void);
void connectToMqtt(void);
const String firmware{"1.23"};
const String firmware{"1.24"};
String espnowNetName{"DEFAULT"};
@ -90,6 +90,7 @@ void setup()
WiFi.setAutoReconnect(true);
myNet.begin(espnowNetName.c_str(), true);
// 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(onEspnowMessage);
myNet.setOnUnicastReceivingCallback(onEspnowMessage);