Zephyr Project API 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

This allows to use the MCUmgr SMP protocol over UDP. More...

Files

file  smp_udp.h
 UDP transport for the MCUmgr SMP protocol.
 

Functions

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

Detailed Description

This allows to use the MCUmgr SMP protocol over UDP.

Function Documentation

◆ smp_udp_close()

int smp_udp_close ( void  )

#include <include/zephyr/mgmt/mcumgr/transport/smp_udp.h>

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  )

#include <include/zephyr/mgmt/mcumgr/transport/smp_udp.h>

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.