From fbc24c94e3f53cade501bed94f1b73e229b96f05 Mon Sep 17 00:00:00 2001 From: hsaturn Date: Mon, 22 Mar 2021 02:34:45 +0100 Subject: [PATCH] MqttClient::publish with String added --- src/TinyMqtt.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/TinyMqtt.h b/src/TinyMqtt.h index d702de9..d70ac8e 100644 --- a/src/TinyMqtt.h +++ b/src/TinyMqtt.h @@ -134,6 +134,7 @@ class MqttClient // Publish from client to the world MqttError publish(const Topic&, const char* payload, size_t pay_length); + MqttError publish(const Topic& t, const String& s) { return publish(t, s.c_str(), s.length()); } MqttError publish(const Topic& t, const std::string& s) { return publish(t,s.c_str(),s.length());} MqttError publish(const Topic& t) { return publish(t, nullptr, 0);};