TuyaOS
tuya_wifi_connect.h
1#ifndef __TUYA_WIFI_CONNECT_H__
2#define __TUYA_WIFI_CONNECT_H__
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
19typedef OPERATE_RET(* reconnect_cb_fn)(INT_T local_disconnect_seconds, INT_T cloud_disconnect_seconds);
20
24typedef struct {
25 reconnect_cb_fn reconnect_fn;
27
36OPERATE_RET tuya_wifi_reconnect_prepare(VOID_T);
37
48OPERATE_RET tuya_wifi_register_reconnect_config(reconnect_cb_fn reconnect_fn);
49
50
60OPERATE_RET tuya_wifi_reconnect_to_ap(VOID_T);
61
67OPERATE_RET tuya_wifi_switch_start(IN CHAR_T *ssid, IN CHAR_T *passwd);
68
69
70#ifdef __cplusplus
71}
72#endif
73
74#endif
75
reconnect configuration.
Definition: tuya_wifi_connect.h:24