Skip to content

Commit 9a41fa0

Browse files
committed
fix function publish(char*,String)
1 parent ad4e8f0 commit 9a41fa0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

MicroGear.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,10 @@ bool MicroGear::publish(char* topic, int message, bool retained) {
621621
return publish(topic, message, 0, retained);
622622
}
623623

624+
bool MicroGear::publish(char* topic, String message) {
625+
return publish(topic, message, false);
626+
}
627+
624628
bool MicroGear::publish(char* topic, String message, bool retained) {
625629
char buff[MAXBUFFSIZE];
626630
message.toCharArray(buff,MAXBUFFSIZE);

0 commit comments

Comments
 (0)