Add inputs for controlling all lights

This commit is contained in:
Robert Marshall 2021-08-22 20:08:04 +01:00
parent a4ab81cf4d
commit eacb06c0ae

View file

@ -8,6 +8,14 @@ class BluetoothLEDCallback : public BLECharacteristicCallbacks {
std::string value = characteristic->getValue();
if (value.length() > 0) {
Serial.println(value.c_str());
if (value == "all on"){
_seatingLeds->on();
_kitchenLeds->on();
}
if (value == "all off"){
_seatingLeds->off();
_kitchenLeds->off();
}
if (value == "seating on")
_seatingLeds->on();
if (value == "kitchen on")