Wombat Environmental Node 1.0
An environmental node for SDI-12 and digital sensors.
Loading...
Searching...
No Matches
mqtt_stack.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool mqtt_login (void)
 
bool mqtt_logout (void)
 
bool mqtt_publish (String &topic, const char *msg, size_t msg_len)
 
bool mqtt_publish_file (const String &topic, const String &filename)
 

Function Documentation

◆ mqtt_login()

bool mqtt_login ( void  )

◆ 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
topicthe topic to publish to.
msgthe message to send - this is expected to be a UTF-8 text message.
msg_lenthe 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
topicthe topic to publish to.
filenamethe filename on the modem filesystem containing the message to publish.
Returns
true if the message was published, otherwise false.