Re: tcpip_adapter_set_hostname() not working by mzimmers » Sat Oct 31, 2020 2:48 am Hi boarchuz - (EDITED to avoid confustion) Yes, it is. Here's the excerpts from my initialization: Code: Select all ESP_E
I don't get an error. I use a pointer to a char array - I believe it's valid. Yes, I removed the tcpip_adapter call. Here's the code: Code:Select all esp_err_tWifi::setHostname(){ string s;esp_err_terr;charhostname[32] = { NULL_CHAR };// can't find a macro for thi...
`tcpip_adapter_start_api` 函数是一个用于启动 TCP/IP 适配器的 API 函数。它通常用于初始化和管理...
Re: tcpip_adapter_set_hostname() not working by boarchuz » Wed Nov 04, 2020 1:13 am esp_netif_get_hostname will modify p; it doesn't point to 'hostname' any more. Try: Code: Select all ESP_LOGI(TAG, "setHostname(): get_hostname returned \"%s\".", p);m...