@@ -270,15 +270,15 @@ int MqttClient::publish(const char* topic, const char* payload, bool retain, uin
270270}
271271
272272int MqttClient::publish (const String& topic, const char * payload, bool retain, uint8_t qos, bool dup) {
273- publish (topic.c_str (), payload, retain, qos, dup);
273+ return publish (topic.c_str (), payload, retain, qos, dup);
274274}
275275
276276int MqttClient::publish (const char * topic, String& payload, bool retain, uint8_t qos, bool dup) {
277- publish (topic, payload.c_str (), retain, qos, dup);
277+ return publish (topic, payload.c_str (), retain, qos, dup);
278278}
279279
280- int MqttClient::publish (const String& topic, String& payload, bool retain, uint8_t qos, bool dup){
281- publish (topic.c_str (), payload.c_str (), retain, qos, dup);
280+ int MqttClient::publish (const String& topic, String& payload, bool retain, uint8_t qos, bool dup) {
281+ return publish (topic.c_str (), payload.c_str (), retain, qos, dup);
282282}
283283
284284int MqttClient::beginWill (const char * topic, unsigned short size, bool retain, uint8_t qos)
0 commit comments