Wombat Environmental Node 1.0
An environmental node for SDI-12 and digital sensors.
|
#include "Utils.h"
#include "DeviceConfig.h"
#include "SparkFun_u-blox_SARA-R5_Arduino_Library.h"
#include "globals.h"
#include "cli/CLI.h"
Macros | |
#define | TAG "mqtt_stack" |
#define | MAX_RSP 64 |
Functions | |
void | mqttCmdCallback (int cmd, int result) |
bool | mqtt_login (void) |
bool | mqtt_logout (void) |
bool | mqtt_publish (String &topic, const char *const msg, size_t msg_len) |
bool | mqtt_publish_file (const String &topic, const String &filename) |
Variables | |
static char | rsp [MAX_RSP+1] |
char * | script = nullptr |
static CommandURCVector< SARA_R5_mqtt_command_opcode_t > | urcs |
#define MAX_RSP 64 |
#define TAG "mqtt_stack" |
bool mqtt_login | ( | void | ) |
bool mqtt_logout | ( | void | ) |
bool mqtt_publish | ( | String & | topic, |
const char * | msg, | ||
size_t | msg_len | ||
) |
Publish a message to the MQTT broker.
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. |
bool mqtt_publish_file | ( | const String & | topic, |
const String & | filename | ||
) |
Publish a message from a file on the modem filesystem.
topic | the topic to publish to. |
filename | the filename on the modem filesystem containing the message to publish. |
void mqttCmdCallback | ( | int | cmd, |
int | result | ||
) |
|
static |
char* script = nullptr |
|
static |