allow number and string for MQTT json commands - #445

This commit is contained in:
proddy
2020-08-15 19:53:55 +02:00
parent 64063fa6cd
commit 67877d07c5
7 changed files with 53 additions and 81 deletions

View File

@@ -96,7 +96,9 @@ class Mqtt {
mqttClient_->disconnect();
}
void incoming(char * topic, char * payload); // for testing
#if defined(EMSESP_DEBUG)
void incoming(const char * topic, const char * payload); // for testing only
#endif
static bool connected() {
return mqttClient_->connected();
@@ -163,7 +165,7 @@ class Mqtt {
static std::shared_ptr<const MqttMessage> queue_subscribe_message(const std::string & topic);
void on_publish(uint16_t packetId);
void on_message(char * topic, char * payload, size_t len);
void on_message(const char * topic, const char * payload, size_t len);
void process_queue();
void process_all_queue();