We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bd9ba7 commit 9496ff0Copy full SHA for 9496ff0
hardware/MQTT.cpp
@@ -227,8 +227,8 @@ void MQTT::on_message(const struct mosquitto_message *message)
227
else if (szCommand == "switchlight")
228
{
229
std::string switchcmd = root["switchcmd"].asString();
230
- #if ((switchcmd != "On") && (switchcmd != "Off") && (switchcmd != "Toggle") && (switchcmd != "Set Level") && (switchcmd != "Stop"))
231
- # goto mqttinvaliddata;
+ //if ((switchcmd != "On") && (switchcmd != "Off") && (switchcmd != "Toggle") && (switchcmd != "Set Level") && (switchcmd != "Stop"))
+ // goto mqttinvaliddata;
232
int level = 0;
233
if (!root["level"].empty())
234
0 commit comments