Skip to content

Commit 589bba0

Browse files
committed
[wiring] Mesh: sanity checks in publish/subscribe, whitespacing
1 parent c242ee3 commit 589bba0

File tree

2 files changed

+211
-162
lines changed

2 files changed

+211
-162
lines changed

wiring/inc/spark_wiring_mesh.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class MeshPublish {
126126
// and system.
127127
}
128128

129-
int publish(const char* topic, const char* data);
129+
int publish(const char* topic, const char* data = nullptr);
130130

131131
int subscribe(const char* prefix, EventHandler handler);
132132

0 commit comments

Comments
 (0)