1
0
Fork 0
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:
Knut Ahlers 2020-07-19 15:35:21 +02:00
parent ed4caab6cf
commit aad6b7fdd1
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -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) {