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() {strings;esp_err_terr;charhostname[32] = { NULL_CHAR };// can't find a macro for this...
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...
tcpip_adapter_set_hostname() max host name length?by zliudr » Thu Jun 11, 2020 9:01 pm I tried 44 bytes and ESP_ERROR_CHECK() rebooted my device. 32 seems to work but I should know the limit. I'm using Release V3.3 I just read here that this function is depreciated since ...
`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...