Go to the documentation of this file.
34 #ifndef MQTT_THREAD_PRIORITY
35 #define MQTT_THREAD_PRIORITY (THREAD_PRIORITY_MAIN - 1)
42 #ifndef MQTT_THREAD_STACKSIZE
43 #define MQTT_THREAD_STACKSIZE (THREAD_STACKSIZE_LARGE)
48 #ifndef MQTT_YIELD_POLLING_MS
49 #define MQTT_YIELD_POLLING_MS (30)
struct to get time references within mqtt paho
int16_t kernel_pid_t
Unique process identifier.
Network struct within mqtt paho.
struct Network Network
Network struct within mqtt paho.
void MutexInit(Mutex *mutex)
Initialize mutex struct.
void TimerCountdown(Timer *timer, unsigned int secs)
start timer set to seconds
kernel_pid_t pid
MQTT thread pid.
xtimer_ticks64_t ticks_timeout
timeout in ticks
int TimerLeftMS(Timer *timer)
Returns millisecs left in timer.
Mutex struct within mqtt paho.
int ThreadStart(Thread *thread, void(*fn)(void *), void *arg)
Start new thread.
int(* mqttread)(struct Network *, unsigned char *, int, int)
read internal function
int NetworkConnect(Network *n, char *address_ip, int port_number)
Connect network to host.
int MutexLock(Mutex *mutex)
Locks mutex struct.
int(* mqttwrite)(struct Network *, unsigned char *, int, int)
write internal function
mutex_t lock
MQTT thread mutex.
void NetworkDisconnect(Network *n)
Disconnect network.
Thread struct within mqtt paho.
#define MQTT_THREAD_STACKSIZE
RIOT's mqtt paho thread stack size.
Mutex for thread synchronization.
xtimer timestamp (64 bit)
char TimerIsExpired(Timer *timer)
is timer expired?
void TimerCountdownMS(Timer *timer, unsigned int msecs)
start timer set to milli seconds
void NetworkInit(Network *n)
Initialize network struct.
void TimerInit(Timer *timer)
Initialize timer struct.
sock_tcp_t sock
socket number
int MutexUnlock(Mutex *mutex)
Unlocks mutex struct.
xtimer interface definitions
xtimer_ticks64_t set_ticks
timeout ticks