Closed graybushlabs closed 2 months ago
This should be applied to all sketches once the test is done
The NodeMCU has 2 ways to set the hostname and the order of operations appears to be important. The gist of the posts is that you need to
WiFi.mode(WIFI_STA);
WiFi.hostname(hostname.c_str());
WiFi.begin(SSID, PASSWORD);
See also: https://randomnerdtutorials.com/esp8266-nodemcu-set-custom-hostname-arduino/
This should be applied to all sketches once the test is done
The NodeMCU has 2 ways to set the hostname and the order of operations appears to be important. The gist of the posts is that you need to
WiFi.mode(WIFI_STA);
WiFi.hostname(hostname.c_str());
WiFi.begin(SSID, PASSWORD);
See also: https://randomnerdtutorials.com/esp8266-nodemcu-set-custom-hostname-arduino/