esp_now_register_recv_cb([](uint8_t* mac, uint8_t* data, uint8_t len){
时间: 2023-12-01 11:17:34 浏览: 131
C++_Socket网络编程大全
3星 · 编辑精心推荐
This is a callback function that will be executed when a message is received via ESP-NOW. The function takes three parameters:
1. `mac`: The MAC address of the sender of the message.
2. `data`: The data that was sent.
3. `len`: The length of the data in bytes.
The function is registered using the `esp_now_register_recv_cb()` function, which takes the callback function as its parameter.
阅读全文