#include "MQTTAsync.h"
#include "MQTTClientPersistence.h"
#include "pubsub_opts.h"
#include <stdio.h>
#include <signal.h>
#include <string.h>
#include <stdlib.h>
#include <sys/time.h>
#include <unistd.h>
Go to the source code of this file.
Functions | |
void | cfinish (int sig) |
int | main (int argc, char **argv) |
int | messageArrived (void *context, char *topicName, int topicLen, MQTTAsync_message *message) |
void | mysleep (int ms) |
void | onConnect (void *context, MQTTAsync_successData *response) |
void | onConnect5 (void *context, MQTTAsync_successData5 *response) |
void | onConnectFailure (void *context, MQTTAsync_failureData *response) |
void | onConnectFailure5 (void *context, MQTTAsync_failureData5 *response) |
void | onDisconnect (void *context, MQTTAsync_successData *response) |
void | onSubscribe (void *context, MQTTAsync_successData *response) |
void | onSubscribe5 (void *context, MQTTAsync_successData5 *response) |
void | onSubscribeFailure (void *context, MQTTAsync_failureData *response) |
void | onSubscribeFailure5 (void *context, MQTTAsync_failureData5 *response) |
void | trace_callback (enum MQTTASYNC_TRACE_LEVELS level, char *message) |
Variables | |
MQTTAsync_connectOptions | conn_opts = MQTTAsync_connectOptions_initializer |
int | disconnected = 0 |
volatile int | finished = 0 |
struct pubsub_opts | opts |
int | subscribed = 0 |
void cfinish | ( | int | sig | ) |
Definition at line 56 of file paho_c_sub.c.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 200 of file paho_c_sub.c.
int messageArrived | ( | void * | context, |
char * | topicName, | ||
int | topicLen, | ||
MQTTAsync_message * | message | ||
) |
Definition at line 74 of file paho_c_sub.c.
void mysleep | ( | int | ms | ) |
Definition at line 47 of file paho_c_sub.c.
void onConnect | ( | void * | context, |
MQTTAsync_successData * | response | ||
) |
Definition at line 171 of file paho_c_sub.c.
void onConnect5 | ( | void * | context, |
MQTTAsync_successData5 * | response | ||
) |
Definition at line 150 of file paho_c_sub.c.
void onConnectFailure | ( | void * | context, |
MQTTAsync_failureData * | response | ||
) |
Definition at line 142 of file paho_c_sub.c.
void onConnectFailure5 | ( | void * | context, |
MQTTAsync_failureData5 * | response | ||
) |
Definition at line 132 of file paho_c_sub.c.
void onDisconnect | ( | void * | context, |
MQTTAsync_successData * | response | ||
) |
Definition at line 96 of file paho_c_sub.c.
void onSubscribe | ( | void * | context, |
MQTTAsync_successData * | response | ||
) |
Definition at line 107 of file paho_c_sub.c.
void onSubscribe5 | ( | void * | context, |
MQTTAsync_successData5 * | response | ||
) |
Definition at line 102 of file paho_c_sub.c.
void onSubscribeFailure | ( | void * | context, |
MQTTAsync_failureData * | response | ||
) |
Definition at line 123 of file paho_c_sub.c.
void onSubscribeFailure5 | ( | void * | context, |
MQTTAsync_failureData5 * | response | ||
) |
Definition at line 113 of file paho_c_sub.c.
void trace_callback | ( | enum MQTTASYNC_TRACE_LEVELS | level, |
char * | message | ||
) |
Definition at line 194 of file paho_c_sub.c.
Definition at line 191 of file paho_c_sub.c.
int disconnected = 0 |
Definition at line 44 of file paho_c_sub.c.
volatile int finished = 0 |
Definition at line 42 of file paho_c_sub.c.
struct pubsub_opts opts |
Definition at line 63 of file paho_c_sub.c.
int subscribed = 0 |
Definition at line 43 of file paho_c_sub.c.