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.
◆ 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(*)(void *) |
fn, |
|
|
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