--- tag: api type: function name: beginPublish params: - name: topic description: the topic to publish to type: const char[] - name: length description: the length of the payload to be sent type: unsigned int - name: retained description: whether the message should be retained
write
followed by a call to endPublish
.