mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-12 21:18:13 +08:00
27 lines
483 B
C
27 lines
483 B
C
#ifndef __USER_WIFI_H_
|
|
#define __USER_WIFI_H_
|
|
|
|
#include "mico.h"
|
|
#include "mico_wlan.h"
|
|
#include "micokit_ext.h"
|
|
|
|
enum
|
|
{
|
|
WIFI_STATE_FAIL,
|
|
WIFI_STATE_NOCONNECT,
|
|
WIFI_STATE_CONNECTING,
|
|
WIFI_STATE_CONNECTED,
|
|
};
|
|
|
|
#define WIFI_SCAN_RESULT_JSON "{'success':%d,'ssids':[%s],'secs':[%s]}"
|
|
extern bool scaned;
|
|
extern char* wifi_ret;
|
|
|
|
extern char wifi_status;
|
|
|
|
extern void WifiInit(void);
|
|
extern void ApInit(void);
|
|
extern void WifiConnect(char* wifi_ssid, char* wifi_key);
|
|
|
|
#endif
|