Zephyr Project API  3.4.0
A Scalable Open Source RTOS
smp_udp.h File Reference

UDP transport for the MCUmgr SMP protocol. More...

Go to the source code of this file.

Functions

int smp_udp_open (void)
 Enables the UDP SMP MCUmgr transport thread(s) which will open a socket and listen to requests. More...
 
int smp_udp_close (void)
 Disables the UDP SMP MCUmgr transport thread(s) which will close open sockets. More...
 

Detailed Description

UDP transport for the MCUmgr SMP protocol.

Function Documentation

◆ smp_udp_close()

int smp_udp_close ( void  )

Disables the UDP SMP MCUmgr transport thread(s) which will close open sockets.

Note
API is not thread safe.
Returns
0 on success
-errno code on failure.

◆ smp_udp_open()

int smp_udp_open ( void  )

Enables the UDP SMP MCUmgr transport thread(s) which will open a socket and listen to requests.

Note
API is not thread safe.
Returns
0 on success
-errno code on failure.