mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 19:56:44 +00:00
allow MQTT_NODENAME override
This commit is contained in:
parent
b95e2d78f1
commit
6abf19b1df
@ -15,7 +15,11 @@ class Esp32Device : public BaseDevice {
|
|||||||
public:
|
public:
|
||||||
Esp32Device()
|
Esp32Device()
|
||||||
{
|
{
|
||||||
|
#ifdef MQTT_NODENAME
|
||||||
|
_hostname = MQTT_NODENAME;
|
||||||
|
#else
|
||||||
_hostname = "plate";
|
_hostname = "plate";
|
||||||
|
#endif
|
||||||
_backlight_power = 1;
|
_backlight_power = 1;
|
||||||
_backlight_level = 100;
|
_backlight_level = 100;
|
||||||
#ifdef TFT_BCKL
|
#ifdef TFT_BCKL
|
||||||
|
Loading…
x
Reference in New Issue
Block a user