--- tag: api type: function name: publish params: - name: topic description: the topic to publish to type: const char[] - name: payload description: the message to publish type: const char[], byte[] - name: length optional: true description: the length of the payload. Required if payload is a byte[] type: unsigned int - name: retained optional: true description: whether the message should be retained