Minor changes
This commit is contained in:
parent
5e0822b8e9
commit
49a4bd210d
@ -197,7 +197,7 @@ void setup()
|
||||
Serial.begin(115200);
|
||||
Serial.println();
|
||||
myNet.begin("ZHNetwork");
|
||||
myNet.setCryptKey("VERY_LONG_CRYPT_KEY");
|
||||
// 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);
|
||||
myNet.setOnConfirmReceivingCallback(onConfirmReceiving);
|
||||
|
@ -10,7 +10,7 @@ void setup()
|
||||
Serial.begin(115200);
|
||||
Serial.println();
|
||||
myNet.begin("ZHNetwork");
|
||||
myNet.setCryptKey("VERY_LONG_CRYPT_KEY");
|
||||
// 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);
|
||||
Serial.print("MAC: ");
|
||||
|
@ -13,7 +13,7 @@ void setup()
|
||||
Serial.begin(115200);
|
||||
Serial.println();
|
||||
myNet.begin("ZHNetwork");
|
||||
myNet.setCryptKey("VERY_LONG_CRYPT_KEY");
|
||||
// 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.setOnConfirmReceivingCallback(onConfirmReceiving);
|
||||
Serial.print("MAC: ");
|
||||
Serial.print(myNet.getNodeMac());
|
||||
@ -33,7 +33,7 @@ void loop()
|
||||
Serial.print(myNet.macToString(target));
|
||||
Serial.println(" sended.");
|
||||
myNet.sendUnicastMessage("Hello world!", target);
|
||||
|
||||
|
||||
Serial.print("Unicast with confirm message to MAC ");
|
||||
Serial.print(myNet.macToString(target));
|
||||
Serial.print(" ID ");
|
||||
|
Loading…
x
Reference in New Issue
Block a user