TuyaOS
base_nw_intf.h
1/***********************************************************
2* File: base_nw_intf.h
3* Author: nzy
4* Date: 20170220
5***********************************************************/
6#ifndef _BASE_NW_INTF_H
7#define _BASE_NW_INTF_H
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12#include "tuya_hal_network.h"
13#include "tuya_hal_wired.h"
14#include "tuya_cloud_types.h"
15
26OPERATE_RET bnw_get_ip(OUT NW_IP_S *ip);
27
39OPERATE_RET bnw_set_station_connect(IN CONST CHAR_T *ssid, IN CONST CHAR_T *passwd);
40
51OPERATE_RET bnw_station_get_conn_ap_rssi(OUT SCHAR_T *rssi);
52
63OPERATE_RET bnw_get_mac(OUT NW_MAC_S *mac);
64
75OPERATE_RET bnw_set_mac(IN const NW_MAC_S *mac);
76
87OPERATE_RET bnw_if_wired_connect_net(BOOL_T *status);
88
97BOOL_T bnw_station_conn(void);
98
109BOOL_T bnw_need_wifi_cfg(void);
110
111
112#ifdef __cplusplus
113}
114#endif
115#endif
116
Common process - Initialization
Common process - compatible the tuya_hal_wifi.h