nRF Connect SDK API
3.4.99
Toggle main menu visibility
Loading...
Searching...
No Matches
wifi_prov_core.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2025 Nordic Semiconductor ASA
3
*
4
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5
*/
6
7
#ifndef ZEPHYR_INCLUDE_NET_WIFI_PROV_H_
8
#define ZEPHYR_INCLUDE_NET_WIFI_PROV_H_
9
10
#include <zephyr/types.h>
11
#include <zephyr/net_buf.h>
12
13
#include "request.pb.h"
14
#include "response.pb.h"
15
#include "result.pb.h"
16
#include "version.pb.h"
17
18
#ifdef __cplusplus
19
extern
"C"
{
20
#endif
21
27
28
/* Message size constants */
29
#define INFO_MSG_MAX_LENGTH Info_size
30
#define REQUEST_MSG_MAX_LENGTH Request_size
31
#define RESPONSE_MSG_MAX_LENGTH Response_size
32
#define RESULT_MSG_MAX_LENGTH Result_size
33
34
/* WiFi Provisioning Service Version */
35
#define PROV_SVC_VER 0x02
36
43
int
wifi_prov_recv_req
(
struct
net_buf_simple *req_stream);
44
51
int
wifi_prov_get_info
(
struct
net_buf_simple *info);
52
58
int
wifi_prov_init
(
void
);
59
65
bool
wifi_prov_state_get
(
void
);
66
73
int
wifi_prov_send_rsp
(
struct
net_buf_simple *rsp);
74
81
int
wifi_prov_send_result
(
struct
net_buf_simple *result);
82
86
87
#ifdef __cplusplus
88
}
89
#endif
90
91
#endif
/* ZEPHYR_INCLUDE_NET_WIFI_PROV_H_ */
wifi_prov_send_result
int wifi_prov_send_result(struct net_buf_simple *result)
Send result to the transport layer.
wifi_prov_recv_req
int wifi_prov_recv_req(struct net_buf_simple *req_stream)
Handle received WiFi provisioning request.
wifi_prov_get_info
int wifi_prov_get_info(struct net_buf_simple *info)
Get WiFi provisioning service information.
wifi_prov_send_rsp
int wifi_prov_send_rsp(struct net_buf_simple *rsp)
Send response to the transport layer.
wifi_prov_state_get
bool wifi_prov_state_get(void)
Get WiFi provisioning state.
wifi_prov_init
int wifi_prov_init(void)
Initialize WiFi provisioning service.
include
net
wifi_prov_core
wifi_prov_core.h
Generated on
for nRF Connect SDK API by
1.17.0