IoT managed integrations End Device SDK
Loading...
Searching...
No Matches
iotmi_pal_Wifi.h
Go to the documentation of this file.
1/*
2 * Copyright 2025 Amazon.com, Inc. or its affiliates. All rights reserved.
3 *
4 * AMAZON PROPRIETARY/CONFIDENTIAL
5 *
6 * You may not use this file except in compliance with the terms and
7 * conditions set forth in the accompanying LICENSE.txt file.
8 *
9 * THESE MATERIALS ARE PROVIDED ON AN "AS IS" BASIS. AMAZON SPECIFICALLY
10 * DISCLAIMS, WITH RESPECT TO THESE MATERIALS, ALL WARRANTIES, EXPRESS,
11 * IMPLIED, OR STATUTORY, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY,
12 * FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
13 */
14
20#ifndef IOTMI_PAL_WIFI_H_
21#define IOTMI_PAL_WIFI_H_
22
23#if IOTMI_USE_WSS_PROVISIONEE == 1
24
25#include <stdbool.h>
26#include <stddef.h>
27#include <stdint.h>
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33typedef enum iotmiPal_WifiSecurityType {
34 IOTMI_WIFI_SECURITY_OPEN = 0,
35 IOTMI_WIFI_SECURITY_WEP,
36 IOTMI_WIFI_SECURITY_WPA_PSK,
37 IOTMI_WIFI_SECURITY_WPA2_PSK,
38 IOTMI_WIFI_SECURITY_WPA3_PSK,
39 IOTMI_WIFI_SECURITY_WPA_WPA2_PSK,
40 IOTMI_WIFI_SECURITY_WPA2_WPA3_PSK,
41 IOTMI_WIFI_SECURITY_UNKNOWN,
42} iotmiPal_WifiSecurityType_t;
43
49int32_t iotmiPal_wifiInit(void);
50
59int32_t iotmiPal_connectHiddenAp(const char* ssid, size_t ssid_len,
60 const char* password, size_t password_len,
61 iotmiPal_WifiSecurityType_t security_type);
62
70int32_t iotmiPal_verifyConnection(const char* ssid);
71
80int32_t iotmiPal_getGatewayAddress(char* gateway_addr, size_t len);
81
90int32_t iotmiPal_removeNetwork(const char* ssid, size_t ssid_len);
91
97int32_t iotmiPal_wifiDeinit(void);
98
110int32_t iotmiPal_changeNetwork(const char* ssid, size_t ssid_len,
111 const char* password, size_t password_len,
112 iotmiPal_WifiSecurityType_t security_type,
113 uint16_t channel);
114
118typedef void (*disconnect_callback_t)(void);
119
129int32_t iotmiPal_startMonitoring(disconnect_callback_t callback);
130
136int32_t iotmiPal_stopMonitoring(void);
137
143bool iotmiPal_isMonitoring(void);
144
145#ifdef __cplusplus
146}
147#endif
148
149#endif /* IOTMI_USE_WSS_PROVISIONEE == 1 */
150
151#endif /* ifndef IOTMI_PAL_WIFI_H_ */