made code compile for "device_smarthome" when WiFi is deactivated
This commit is contained in:
parent
20f59bb8eb
commit
a33c9989ff
1 changed files with 2 additions and 0 deletions
|
@ -2,8 +2,10 @@
|
|||
#include "device_smarthome/device_smarthome.h"
|
||||
|
||||
void register_device_smarthome() {
|
||||
#ifdef ENABLE_KEYBOARD_MQTT
|
||||
commands[SMARTHOME_MQTT_BULB1_SET] = makeCommandData(MQTT, {"bulb1_set" }); // payload must be set when calling commandHandler
|
||||
commands[SMARTHOME_MQTT_BULB2_SET] = makeCommandData(MQTT, {"bulb2_set" }); // payload must be set when calling commandHandler
|
||||
commands[SMARTHOME_MQTT_BULB1_BRIGHTNESS_SET] = makeCommandData(MQTT, {"bulb1_setbrightness" }); // payload must be set when calling commandHandler
|
||||
commands[SMARTHOME_MQTT_BULB2_BRIGHTNESS_SET] = makeCommandData(MQTT, {"bulb2_setbrightness" }); // payload must be set when calling commandHandler
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue