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 |
|
|
|