ESP8266 Developer Zone The Official ESP8266 Forum 2018-02-24T14:17:54+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=5964 2018-02-24T14:17:54+08:00 2018-02-24T14:17:54+08:00 https://bbs.espressif.com:443/viewtopic.php?t=5964&p=19445#p19445 <![CDATA[Re: What is the security model of esp-now]]> ESP-NOW guide help?

Statistics: Posted by Her Mary — Sat Feb 24, 2018 2:17 pm


]]>
2018-02-22T01:14:26+08:00 2018-02-22T01:14:26+08:00 https://bbs.espressif.com:443/viewtopic.php?t=5964&p=19429#p19429 <![CDATA[Re: What is the security model of esp-now]]>
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?

Statistics: Posted by drstefa — Thu Feb 22, 2018 1:14 am


]]>
2017-08-15T17:41:19+08:00 2017-08-15T17:41:19+08:00 https://bbs.espressif.com:443/viewtopic.php?t=5964&p=15175#p15175 <![CDATA[Re: What is the security model of esp-now]]>
Do you set the parameter "key" when calling esp_now_add_peer?
That "key" is used to encrypt the ESP-NOW communication.

Thanks for your interest in ESP8266!

Statistics: Posted by ESP_Faye — Tue Aug 15, 2017 5:41 pm


]]>
2017-08-14T23:43:15+08:00 2017-08-14T23:43:15+08:00 https://bbs.espressif.com:443/viewtopic.php?t=5964&p=15167#p15167 <![CDATA[What is the security model of esp-now]]>
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?

Thanks

Statistics: Posted by baoshi — Mon Aug 14, 2017 11:43 pm


]]>