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

884 B

tag type type name params returns
api function function publish_P
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 stored in PROGMEM to the specified topic.