#include "MQTTAsync.h"
#include "pubsub_opts.h"
#include <stdio.h>
#include <signal.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/time.h>
Go to the source code of this file.
|
void | cfinish (int sig) |
|
int | main (int argc, char **argv) |
|
int | messageArrived (void *context, char *topicName, int topicLen, MQTTAsync_message *m) |
|
void | myconnect (MQTTAsync client) |
|
int | mypublish (MQTTAsync client, int datalen, char *data) |
|
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 | onDisconnect5 (void *context, MQTTAsync_successData5 *response) |
|
static unsigned int | onPSKAuth (const char *hint, char *identity, unsigned int max_identity_len, unsigned char *psk, unsigned int max_psk_len, void *context) |
|
void | onPublish (void *context, MQTTAsync_successData *response) |
|
void | onPublish5 (void *context, MQTTAsync_successData5 *response) |
|
void | onPublishFailure (void *context, MQTTAsync_failureData *response) |
|
void | onPublishFailure5 (void *context, MQTTAsync_failureData5 *response) |
|
static int | onSSLError (const char *str, size_t len, void *context) |
|
void | trace_callback (enum MQTTASYNC_TRACE_LEVELS level, char *message) |
|
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
int messageArrived |
( |
void * |
context, |
|
|
char * |
topicName, |
|
|
int |
topicLen, |
|
|
MQTTAsync_message * |
m |
|
) |
| |
int mypublish |
( |
MQTTAsync |
client, |
|
|
int |
datalen, |
|
|
char * |
data |
|
) |
| |
static unsigned int onPSKAuth |
( |
const char * |
hint, |
|
|
char * |
identity, |
|
|
unsigned int |
max_identity_len, |
|
|
unsigned char * |
psk, |
|
|
unsigned int |
max_psk_len, |
|
|
void * |
context |
|
) |
| |
|
static |
static int onSSLError |
( |
const char * |
str, |
|
|
size_t |
len, |
|
|
void * |
context |
|
) |
| |
|
static |
Initial value:=
{
1, 0, 0, 0, "\n", 100,
NULL, NULL, 1, 0, 0,
MQTTVERSION_DEFAULT, NULL,
"paho-c-pub", 0, 0, NULL, NULL,
"localhost",
"1883", NULL, 10,
NULL, NULL, 0, 0,
0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
0, {NULL, NULL},
}
#define MQTTVERSION_DEFAULT
Definition at line 42 of file paho_c_pub.c.