Trying to develop something using 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
What is the security model of esp-now
Re: What is the security model of esp-now
Postby ESP_Faye » Tue Aug 15, 2017 5:41 pm
Hi,
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!
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!
Re: What is the security model of esp-now
Postby drstefa » Thu Feb 22, 2018 1:14 am
I got the same problem.
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?
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?
Re: What is the security model of esp-now
Postby Her Mary » Sat Feb 24, 2018 2:17 pm
Could this ESP-NOW guide help?
Who is online
Users browsing this forum: No registered users and 116 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
-
- All times are UTC+08:00
- Top
- Delete all board cookies
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.