Loading...
Searching...
No Matches
paho_mqtt.h File Reference

Network MQTT interface definitions. More...

Detailed Description

Network MQTT interface definitions.

Author
Javier FILEIV javie.nosp@m.r.fi.nosp@m.leiv@.nosp@m.gmai.nosp@m.l.com

Definition in file paho_mqtt.h.

#include "mutex.h"
#include "thread.h"
#include "net/sock/tcp.h"
+ Include dependency graph for paho_mqtt.h:

Go to the source code of this file.

Data Structures

struct  Timer
 struct to get time references within mqtt paho More...
 
struct  Network
 Network struct within mqtt paho. More...
 
struct  Mutex
 Mutex struct within mqtt paho. More...
 
struct  Thread
 Thread struct within mqtt paho. More...
 

Macros

#define MQTT_THREAD_PRIORITY   (THREAD_PRIORITY_MAIN - 1)
 RIOT's mqtt paho thread priority.
 
#define MQTT_THREAD_STACKSIZE   (THREAD_STACKSIZE_LARGE)
 RIOT's mqtt paho thread stack size.
 
#define MQTT_YIELD_POLLING_MS   (30)
 MQTT thread YIELD polling time in msecs.
 

Typedefs

typedef struct Network Network
 Network struct within mqtt paho.
 

Functions

void TimerInit (Timer *timer)
 Initialize timer struct.
 
char TimerIsExpired (Timer *timer)
 is timer expired?
 
void TimerCountdownMS (Timer *timer, unsigned int msecs)
 start timer set to milli seconds
 
void TimerCountdown (Timer *timer, unsigned int secs)
 start timer set to seconds
 
int TimerLeftMS (Timer *timer)
 Returns millisecs left in timer.
 
void NetworkInit (Network *n)
 Initialize network struct.
 
int NetworkConnect (Network *n, char *address_ip, int port_number)
 Connect network to host.
 
void NetworkDisconnect (Network *n)
 Disconnect network.
 
void MutexInit (Mutex *mutex)
 Initialize mutex struct.
 
int MutexLock (Mutex *mutex)
 Locks mutex struct.
 
int MutexUnlock (Mutex *mutex)
 Unlocks mutex struct.
 
int ThreadStart (Thread *thread, void(*fn)(void *), void *arg)
 Start new thread.