Zephyr API
4.4.99
A Scalable Open Source RTOS
Toggle main menu visibility
Loading...
Searching...
No Matches
smp_udp.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2019, Prevas A/S
3
* Copyright (c) 2023 Nordic Semiconductor ASA
4
*
5
* SPDX-License-Identifier: Apache-2.0
6
*/
7
13
14
#ifndef ZEPHYR_INCLUDE_MGMT_SMP_UDP_H_
15
#define ZEPHYR_INCLUDE_MGMT_SMP_UDP_H_
16
17
#include <
zephyr/mgmt/mcumgr/smp/smp_client.h
>
18
#include <
zephyr/net/net_ip.h
>
19
26
27
#ifdef __cplusplus
28
extern
"C"
{
29
#endif
30
40
int
smp_udp_open
(
void
);
41
50
int
smp_udp_close
(
void
);
51
52
#if defined(CONFIG_SMP_CLIENT) || defined(__DOXYGEN__)
61
int
smp_client_udp_set_host_addr
(
struct
smp_client_object
*obj,
struct
net_sockaddr
*addr);
62
#endif
63
64
#ifdef __cplusplus
65
}
66
#endif
67
71
72
#endif
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.
smp_client_udp_set_host_addr
int smp_client_udp_set_host_addr(struct smp_client_object *obj, struct net_sockaddr *addr)
Set host address for smp_client_object.
smp_udp_close
int smp_udp_close(void)
Disables the UDP SMP MCUmgr transport thread(s) which will close open sockets.
net_ip.h
IPv6 and IPv4 definitions.
smp_client.h
Header file for the MCUmgr SMP client API.
net_sockaddr
Generic sockaddr struct.
Definition
net_ip.h:462
smp_client_object
SMP client object.
Definition
smp_client.h:32
zephyr
mgmt
mcumgr
transport
smp_udp.h
Generated on
for Zephyr API by
1.17.0