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