It seems that, there is no way for a sender and receiver to agree upon some common secret before communication. As long as the sender knows receiver's mac address, sender can always send data to receiver.
I tried esp_now_set_kok, and with/without esp_now_add_peer, all does not work. A sender can always send data to receiver with default kok and use esp_now_send with receiver's mac address.
Is this the correct implementation?
On master i set esp_now_set_kok with the key and add peer using the same key. Master send data and esp_now_register_recv_cb is correct fired.
On slave i set esp_now_set_kok with the key but esp_now_register_recv_cb will not fired.
Same code without using key works fine and correctly.
How could i check?
Who is online
Users browsing this forum: Google [Bot] and 11 guests
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
We also have a RTOS version and a MESH version too!
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!