Chat freely about anything...

User avatar
By Ashwin
#33115 Hi Martin,

Thank you for the piece of code. I added this piece of code to my code and called the function showClientList() from loop(), but I receive this error:
'wifi_softap_get_station_info' was not declared in this scope

Do I have to include a library to get this working? Can you please suggest a workaround?
TIA! :)
User avatar
By Ashwin
#33152 An update to the post:

I included the library file user_interface.h to my code and the error message changed. Now I get this error message:
collect2.exe: error: ld returned 1 exit status
User avatar
By martinayotte
#33177 What SDK environment are you using ?
"ld exit" is a linkage error, maybe you need to provided larger part of the output to figure out.
Be also aware that simply adding includes in a C++ leading to such errors.
The "user_interface.h" is a plain C header, so in C++ you needs to add it the following way :

Code: Select allextern "C" {
#include "user_interface.h"
}
User avatar
By Ashwin
#33220 Thanks for the prompt reply, Martin!
I included the file by using the extern method you mentioned, and now no errors :)
Thanks a lot :)
I will test if the code works fine and let you know by the EOD.