By default, when connected to AP, AP shows “UNKNOWN” as “client name”.
How can the client name be set?
Thanks,
Ivan Slavov
By default, when connected to AP, AP shows “UNKNOWN” as “client name”.
How can the client name be set?
Thanks,
Ivan Slavov
Hi @airista_islavov,
Before calling the WiFi.begin API, could you try calling the API WiFi.setHostName($Your device name)?
Thank you.
Hi,
This seems Arduino reference code.
I am using the Ameba SDK and GCC, so I need the API in the SDK context.
This is where I thought I would find the API to call to set the host name:
I browsed all header files and I don’t see anything “host” related.
Thanks,
Ivan S.
Hi @airista_islavov,
I believe you can try to set it with the lwip API. ameba-rtos-d/component/common/network/lwip/lwip_v2.0.2/src/include/lwip/netif.h at main · Ameba-AIoT/ameba-rtos-d · GitHub.
First define lwip hostname support in your lwipopts.h.
#define LWIP_NETIF_HOSTNAME 1 // Enable hostname
Then try to call the function netif_set_hostname in line 433 of the file attached above.
Hope this helps.
Thank you.
Thank you Kelvin! it worked!