allow MQTT_NODENAME override

This commit is contained in:
arovak 2021-04-05 23:35:20 +02:00
parent b95e2d78f1
commit 6abf19b1df

View File

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