Skip to content

Commit

Permalink
fix missing return
Browse files Browse the repository at this point in the history
  • Loading branch information
hmueller01 committed Nov 11, 2024
1 parent e26da8a commit 4125152
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/MqttClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,15 +270,15 @@ int MqttClient::publish(const char* topic, const char* payload, bool retain, uin
}

int MqttClient::publish(const String& topic, const char* payload, bool retain, uint8_t qos, bool dup) {
publish(topic.c_str(), payload, retain, qos, dup);
return publish(topic.c_str(), payload, retain, qos, dup);
}

int MqttClient::publish(const char* topic, String& payload, bool retain, uint8_t qos, bool dup) {
publish(topic, payload.c_str(), retain, qos, dup);
return publish(topic, payload.c_str(), retain, qos, dup);
}

int MqttClient::publish(const String& topic, String& payload, bool retain, uint8_t qos, bool dup){
publish(topic.c_str(), payload.c_str(), retain, qos, dup);
int MqttClient::publish(const String& topic, String& payload, bool retain, uint8_t qos, bool dup) {
return publish(topic.c_str(), payload.c_str(), retain, qos, dup);
}

int MqttClient::beginWill(const char* topic, unsigned short size, bool retain, uint8_t qos)
Expand Down

0 comments on commit 4125152

Please sign in to comment.