Go to the source code of this file.
◆ mqtt_login()
◆ mqtt_logout()
bool mqtt_logout |
( |
void |
| ) |
|
◆ mqtt_publish()
bool mqtt_publish |
( |
String & |
topic, |
|
|
const char * |
msg, |
|
|
size_t |
msg_len |
|
) |
| |
Publish a message to the MQTT broker.
- Parameters
-
topic | the topic to publish to. |
msg | the message to send - this is expected to be a UTF-8 text message. |
msg_len | the length of the message in units of uint8_t. |
- Returns
- true if the message was published, otherwise false.
◆ mqtt_publish_file()
bool mqtt_publish_file |
( |
const String & |
topic, |
|
|
const String & |
filename |
|
) |
| |
Publish a message from a file on the modem filesystem.
- Parameters
-
topic | the topic to publish to. |
filename | the filename on the modem filesystem containing the message to publish. |
- Returns
- true if the message was published, otherwise false.