#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "MQTTClient.h"
#include <unistd.h>
Go to the source code of this file.
Macros | |
#define | ADDRESS "tcp://mqtt.eclipse.org:1883" |
#define | CLIENTID "ExampleClientPub" |
#define | PAYLOAD "Hello World!" |
#define | QOS 1 |
#define | TIMEOUT 10000L |
#define | TOPIC "MQTT Examples" |
Functions | |
void | connlost (void *context, char *cause) |
void | delivered (void *context, MQTTClient_deliveryToken dt) |
int | main (int argc, char *argv[]) |
int | msgarrvd (void *context, char *topicName, int topicLen, MQTTClient_message *message) |
Variables | |
MQTTClient_deliveryToken | deliveredtoken |
#define ADDRESS "tcp://mqtt.eclipse.org:1883" |
Definition at line 28 of file MQTTClient_publish_async.c.
#define CLIENTID "ExampleClientPub" |
Definition at line 29 of file MQTTClient_publish_async.c.
#define PAYLOAD "Hello World!" |
Definition at line 31 of file MQTTClient_publish_async.c.
#define QOS 1 |
Definition at line 32 of file MQTTClient_publish_async.c.
#define TIMEOUT 10000L |
Definition at line 33 of file MQTTClient_publish_async.c.
#define TOPIC "MQTT Examples" |
Definition at line 30 of file MQTTClient_publish_async.c.
void connlost | ( | void * | context, |
char * | cause | ||
) |
Definition at line 53 of file MQTTClient_publish_async.c.
void delivered | ( | void * | context, |
MQTTClient_deliveryToken | dt | ||
) |
Definition at line 37 of file MQTTClient_publish_async.c.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 59 of file MQTTClient_publish_async.c.
int msgarrvd | ( | void * | context, |
char * | topicName, | ||
int | topicLen, | ||
MQTTClient_message * | message | ||
) |
Definition at line 43 of file MQTTClient_publish_async.c.
MQTTClient_deliveryToken deliveredtoken |
Definition at line 35 of file MQTTClient_publish_async.c.