mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-12 21:18:13 +08:00
返回扫描结果
This commit is contained in:
@@ -2,16 +2,34 @@
|
||||
#define __USER_WIFI_H_
|
||||
|
||||
#include "mico.h"
|
||||
#include "mico_wlan.h"
|
||||
#include "micokit_ext.h"
|
||||
|
||||
enum {
|
||||
enum
|
||||
{
|
||||
WIFI_STATE_FAIL,
|
||||
WIFI_STATE_NOCONNECT,
|
||||
WIFI_STATE_CONNECTING,
|
||||
WIFI_STATE_CONNECTED,
|
||||
};
|
||||
|
||||
/*
|
||||
typedef struct _WifiResult
|
||||
{
|
||||
char ssid[32];
|
||||
wlan_sec_type_t security;
|
||||
}
|
||||
WifiResult;
|
||||
*/
|
||||
|
||||
#define WIFI_SCAN_RESULT_JSON "{'success':%d,'ssids':[%s],'secs':[%s]}"
|
||||
|
||||
extern char* wifi_ret;
|
||||
|
||||
extern char wifi_status;
|
||||
extern bool scaned;
|
||||
//extern WifiResult* wifi_rets;
|
||||
|
||||
extern void wifi_init(void);
|
||||
extern void ap_init(void);
|
||||
extern void wifi_connect(char* wifi_ssid, char* wifi_key);
|
||||
|
||||
Reference in New Issue
Block a user