mirror of
https://github.com/Luzifer/espsms.git
synced 2024-11-09 15:39:59 +00:00
Use MQTT client id as hostname
This commit is contained in:
parent
ed4caab6cf
commit
aad6b7fdd1
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ void initModem() {
|
|||
|
||||
void initWiFi() {
|
||||
Serial.println("Connecting to WiFi...");
|
||||
WiFi.setHostname("espsms");
|
||||
WiFi.setHostname(MQTT_CLIENT_ID);
|
||||
WiFi.begin(WIFI_NAME, WIFI_PASS);
|
||||
|
||||
while (WiFi.status() != WL_CONNECTED) {
|
||||
|
|
Loading…
Reference in a new issue