Change MDNS_NAME to SYSTEM_NAME
This value will be used as the MQTT client name when MQTT gets implemented.
This commit is contained in:
parent
de722e001c
commit
932e3d5d52
@ -224,7 +224,7 @@ setup()
|
|||||||
|
|
||||||
MDNS.setHostProbeResultCallback(host_probe_result);
|
MDNS.setHostProbeResultCallback(host_probe_result);
|
||||||
|
|
||||||
if ((!MDNSResponder::indexDomain(negotiated_hostname, 0, MDNS_NAME)) ||
|
if ((!MDNSResponder::indexDomain(negotiated_hostname, 0, SYSTEM_NAME)) ||
|
||||||
(!MDNS.begin(negotiated_hostname))) {
|
(!MDNS.begin(negotiated_hostname))) {
|
||||||
Serial.println("Error setting up mDNS!");
|
Serial.println("Error setting up mDNS!");
|
||||||
|
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "consts.h"
|
||||||
|
|
||||||
// The SSID (name) and password of the WiFi network you want to connect to
|
// The SSID (name) and password of the WiFi network you want to connect to
|
||||||
#define WIFI_SSID "YourWiFiName"
|
#define WIFI_SSID "YourWiFiName"
|
||||||
#define WIFI_PASS "YourWiFiPass"
|
#define WIFI_PASS "YourWiFiPass"
|
||||||
@ -31,7 +33,7 @@
|
|||||||
// The mDNS hostname you want this station to be visible as. This should be
|
// The mDNS hostname you want this station to be visible as. This should be
|
||||||
// different for each station you install (e.g. if you want to measure the
|
// different for each station you install (e.g. if you want to measure the
|
||||||
// temperature and humidity of each room separately)
|
// temperature and humidity of each room separately)
|
||||||
#define MDNS_NAME "internal-hostname"
|
#define SYSTEM_NAME "internal-hostname"
|
||||||
|
|
||||||
// If you have a DHT temperature+humidity sensor of this type will be used,
|
// If you have a DHT temperature+humidity sensor of this type will be used,
|
||||||
// remove the #undef line and uncomment one of DHT11 or DHT22. You also have
|
// remove the #undef line and uncomment one of DHT11 or DHT22. You also have
|
||||||
|
Loading…
x
Reference in New Issue
Block a user