[IR] long long value and hex not taken into account

Nox we can process long long values and hex key when doing MQTTtoIR.
Also remove simpleReceiving as it only enable to use NEC or Raw
This commit is contained in:
Florian committed 2020-01-11 15:45:50 +01:00
1 parent 1cc12e2ecf
commit d4280ffde3
3 files changed
+41 -134

No files matched your search

+7 -3
View File
@@ -431,6 +431,13 @@ void pubMQTT(char *topic, unsigned long payload)
client.publish(topic, val);
}
void pubMQTT(char *topic, unsigned long long payload)
{
char val[21];
sprintf(val, "%llu", payload);
client.publish(topic, val);
}
void pubMQTT(char *topic, String payload)
{
client.publish(topic, (char *)payload.c_str());
@@ -1461,9 +1468,6 @@ void receivingMQTT(char *topicOri, char *datacallback)
#ifdef ZgatewaySRFB
MQTTtoSRFB(topicOri, datacallback);
#endif
#ifdef ZgatewayIR
MQTTtoIR(topicOri, datacallback);
#endif
#ifdef ZgatewayRFM69
MQTTtoRFM69(topicOri, datacallback);
#endif