nRF Connect SDK API 3.3.99
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
19extern "C" {
20#endif
21
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
43int wifi_prov_recv_req(struct net_buf_simple *req_stream);
44
51int wifi_prov_get_info(struct net_buf_simple *info);
52
59
66
73int wifi_prov_send_rsp(struct net_buf_simple *rsp);
74
81int wifi_prov_send_result(struct net_buf_simple *result);
82
87#ifdef __cplusplus
88}
89#endif
90
91#endif /* ZEPHYR_INCLUDE_NET_WIFI_PROV_H_ */
int wifi_prov_send_result(struct net_buf_simple *result)
Send result to the transport layer.
int wifi_prov_recv_req(struct net_buf_simple *req_stream)
Handle received WiFi provisioning request.
int wifi_prov_get_info(struct net_buf_simple *info)
Get WiFi provisioning service information.
int wifi_prov_send_rsp(struct net_buf_simple *rsp)
Send response to the transport layer.
bool wifi_prov_state_get(void)
Get WiFi provisioning state.
int wifi_prov_init(void)
Initialize WiFi provisioning service.