To communicate via ESP-NOW, you need to know the MAC Addresses of the boards so that you can add each other as peers.Įach ESP32 has a unique MAC Address and that’s how we identify each board (learn how to Get and Change the ESP32 MAC Address). The LMK is a property of the peer, esp_now_peer_info_t object, and can be set on the lmk property as we’ll see later. The maximum number of different LMKs is six. You should set the LMK of the paired device to encrypt the vendor-specific action frame with CCMP method. If PMK is not set, a default PMK will be used. To set the PMK key of the Wi-Fi device, you can use the esp_now_set_pmk() function to set PMK. PMK is used to encrypt LMK with the AES-128 algorithm. The Wi-Fi device maintains a Primary Master Key (PMK) and several Local Master Keys (LMK). 802.11-2012 to protect the vendor-specific action frame.” “ ESP-NOW use CCMP method which can be referenced in IEEE Std. ESP-NOW can use the CCMP method to encrypt messages. This is an encryption protocol designed for Wireless LAN. Getting Started with ESP-NOW (ESP32 with Arduino IDE)ĬCMP means Counter Mode with Cipher Block Chaining Message Authentication Code Protocol.If you’re new to ESP-NOW, we recommend reading the following getting started guide first to get familiar with ESP-NOW concepts and functions on the ESP32:
0 Comments
Leave a Reply. |