The Eclipse Paho project provides open-source client implementations of MQTT for embedded systems.
More...
The Eclipse Paho project provides open-source client implementations of MQTT for embedded systems.
- See also
- https://github.com/eclipse/paho.mqtt.embedded-c
The Eclipse Paho project provides open-source client implementations of MQTT.
|
|
typedef struct Network | Network |
| | Network struct within mqtt paho.
|
| |
◆ MQTT_THREAD_PRIORITY
RIOT's mqtt paho thread priority.
Definition at line 34 of file paho_mqtt.h.
◆ MQTT_THREAD_STACKSIZE
RIOT's mqtt paho thread stack size.
Definition at line 42 of file paho_mqtt.h.
◆ MQTT_YIELD_POLLING_MS
| #define MQTT_YIELD_POLLING_MS (30) |
MQTT thread YIELD polling time in msecs.
Definition at line 48 of file paho_mqtt.h.
◆ MutexInit()
| void MutexInit |
( |
Mutex * | mutex | ) |
|
Initialize mutex struct.
- Parameters
-
◆ MutexLock()
| int MutexLock |
( |
Mutex * | mutex | ) |
|
Locks mutex struct.
- Parameters
-
- Returns
- 0 if success, !=0 otherwise
◆ MutexUnlock()
| int MutexUnlock |
( |
Mutex * | mutex | ) |
|
Unlocks mutex struct.
- Parameters
-
- Returns
- 0 if success, !=0 otherwise
◆ NetworkConnect()
| int NetworkConnect |
( |
Network * | n, |
|
|
char * | address_ip, |
|
|
int | port_number ) |
Connect network to host.
- Parameters
-
| n | network struct |
| address_ip | IP address to connect to |
| port_number | port to connect to |
- Returns
- 0 if success, !=0 otherwise
◆ NetworkDisconnect()
| void NetworkDisconnect |
( |
Network * | n | ) |
|
Disconnect network.
- Parameters
-
◆ NetworkInit()
Initialize network struct.
- Parameters
-
◆ ThreadStart()
| int ThreadStart |
( |
Thread * | thread, |
|
|
void(* | fn )(void *), |
|
|
void * | arg ) |
Start new thread.
- Parameters
-
| thread | to start |
| fn | pointer function to execute |
| arg | arguments to pass to that fn |
- Returns
- 0 if success, !=0 otherwise
◆ TimerCountdown()
| void TimerCountdown |
( |
Timer * | timer, |
|
|
unsigned int | secs ) |
start timer set to seconds
- Parameters
-
| timer | timer to start |
| secs | time to set in secs |
◆ TimerCountdownMS()
| void TimerCountdownMS |
( |
Timer * | timer, |
|
|
unsigned int | msecs ) |
start timer set to milli seconds
- Parameters
-
| timer | timer to start |
| msecs | time to set in msecs |
◆ TimerInit()
| void TimerInit |
( |
Timer * | timer | ) |
|
Initialize timer struct.
- Parameters
-
◆ TimerIsExpired()
| char TimerIsExpired |
( |
Timer * | timer | ) |
|
is timer expired?
- Parameters
-
- Returns
- 1 if timer expired, 0 otherwise
◆ TimerLeftMS()
| int TimerLeftMS |
( |
Timer * | timer | ) |
|
Returns millisecs left in timer.
- Parameters
-
- Returns
- msecs left