Files
pubsubclient/_posts/2000-03-01-publish.md
2020-05-21 01:17:42 +01:00

850 B

tag, type, name, params, returns
tag type name params returns
api function publish
name description type
topic the topic to publish to const char[]
name description type
payload the message to publish const char[], byte[]
name optional description type
length true the length of the payload. Required if <span class="methodparams">payload</span> is a <span class="methodparamstype">byte[]</span> unsigned int
name optional description type
retained true whether the message should be retained <ul> <li>false - not retained</li> <li>true - retained</li> </ul> boolean
type values
boolean
value description
false publish failed, either connection lost or message too large
value description
true publish succeeded

Publishes a message to the specified topic.