From 3555d8493525b14321cd3d30ce065ea8419e85a9 Mon Sep 17 00:00:00 2001 From: Hieromon Ikasamo Date: Wed, 2 Jan 2019 13:59:22 +0900 Subject: [PATCH] Changed apid to valid --- examples/mqttRSSI/mqttRSSI.ino | 2 +- examples/mqttRSSI_FS/mqttRSSI_FS.ino | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/mqttRSSI/mqttRSSI.ino b/examples/mqttRSSI/mqttRSSI.ino index 8ccafa3..0b4517e 100644 --- a/examples/mqttRSSI/mqttRSSI.ino +++ b/examples/mqttRSSI/mqttRSSI.ino @@ -359,7 +359,7 @@ void setup() { AutoConnectCheckbox& uniqueidElm = setting->getElement("uniqueid"); AutoConnectInput& hostnameElm = setting->getElement("hostname"); if (uniqueidElm.checked) { - config.apid = String("ESP") + "_" + String(GET_CHIPID(), HEX); + config.apid = String("ESP") + "-" + String(GET_CHIPID(), HEX); Serial.println("apid set to " + config.apid); } if (hostnameElm.value.length()) { diff --git a/examples/mqttRSSI_FS/mqttRSSI_FS.ino b/examples/mqttRSSI_FS/mqttRSSI_FS.ino index 9e1c983..4168f69 100644 --- a/examples/mqttRSSI_FS/mqttRSSI_FS.ino +++ b/examples/mqttRSSI_FS/mqttRSSI_FS.ino @@ -247,7 +247,7 @@ void setup() { AutoConnectCheckbox& uniqueidElm = setting->getElement("uniqueid"); AutoConnectInput& hostnameElm = setting->getElement("hostname"); if (uniqueidElm.checked) { - config.apid = String("ESP") + "_" + String(GET_CHIPID(), HEX); + config.apid = String("ESP") + "-" + String(GET_CHIPID(), HEX); Serial.println("apid set to " + config.apid); } if (hostnameElm.value.length()) {