#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "MQTTAsync.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) |
int | main (int argc, char *argv[]) |
int | messageArrived (void *context, char *topicName, int topicLen, MQTTAsync_message *m) |
void | onConnect (void *context, MQTTAsync_successData *response) |
void | onConnectFailure (void *context, MQTTAsync_failureData *response) |
void | onDisconnect (void *context, MQTTAsync_successData *response) |
void | onDisconnectFailure (void *context, MQTTAsync_failureData *response) |
void | onSend (void *context, MQTTAsync_successData *response) |
void | onSendFailure (void *context, MQTTAsync_failureData *response) |
Variables | |
int | finished = 0 |
#define ADDRESS "tcp://mqtt.eclipse.org:1883" |
Definition at line 32 of file MQTTAsync_publish.c.
#define CLIENTID "ExampleClientPub" |
Definition at line 33 of file MQTTAsync_publish.c.
#define PAYLOAD "Hello World!" |
Definition at line 35 of file MQTTAsync_publish.c.
#define QOS 1 |
Definition at line 36 of file MQTTAsync_publish.c.
#define TIMEOUT 10000L |
Definition at line 37 of file MQTTAsync_publish.c.
#define TOPIC "MQTT Examples" |
Definition at line 34 of file MQTTAsync_publish.c.
void connlost | ( | void * | context, |
char * | cause | ||
) |
Definition at line 41 of file MQTTAsync_publish.c.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 142 of file MQTTAsync_publish.c.
int messageArrived | ( | void * | context, |
char * | topicName, | ||
int | topicLen, | ||
MQTTAsync_message * | m | ||
) |
Definition at line 136 of file MQTTAsync_publish.c.
void onConnect | ( | void * | context, |
MQTTAsync_successData * | response | ||
) |
Definition at line 114 of file MQTTAsync_publish.c.
void onConnectFailure | ( | void * | context, |
MQTTAsync_failureData * | response | ||
) |
Definition at line 107 of file MQTTAsync_publish.c.
void onDisconnect | ( | void * | context, |
MQTTAsync_successData * | response | ||
) |
Definition at line 66 of file MQTTAsync_publish.c.
void onDisconnectFailure | ( | void * | context, |
MQTTAsync_failureData * | response | ||
) |
Definition at line 60 of file MQTTAsync_publish.c.
void onSend | ( | void * | context, |
MQTTAsync_successData * | response | ||
) |
Definition at line 89 of file MQTTAsync_publish.c.
void onSendFailure | ( | void * | context, |
MQTTAsync_failureData * | response | ||
) |
Definition at line 72 of file MQTTAsync_publish.c.
int finished = 0 |
Definition at line 39 of file MQTTAsync_publish.c.