espressif / ESP8266_RTOS_SDK

Latest ESP8266 SDK based on FreeRTOS, esp-idf style.
http://bbs.espressif.com
Apache License 2.0
3.33k stars 1.56k forks source link

how to use this function: int esp_now_get_cnt_info(u8 *all_cnt, u8 *encryp_cnt) (GIT8266O-319) #759

Open smartkodian opened 4 years ago

smartkodian commented 4 years ago

Hi Guys,

Is there any example which how to use this function: int esp_now_get_cnt_info(u8 all_cnt, u8 encryp_cnt) with Arduino IDE environment ?

Thanks for all

smartkodian commented 4 years ago

I got it like this: uint8_t all_cont[1]; uint8_t encrypt_cont[1];

esp_now_get_cnt_info(all_cont, encrypt_cont); Serial.print("peers"); Serial.println(all_cont[0]);

FayeY commented 4 years ago

Could this example help?https://github.com/espressif/ESP8266_RTOS_SDK/tree/master/examples/wifi/espnow

It seems that there is no such API, esp_now_get_cnt_info. Confused..