mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-13 13:38:14 +08:00
24 lines
462 B
C
24 lines
462 B
C
#ifndef __USER_WIFI_H_
|
|
#define __USER_WIFI_H_
|
|
|
|
#include "mico.h"
|
|
#include "micokit_ext.h"
|
|
|
|
enum {
|
|
WIFI_STATE_FAIL,
|
|
WIFI_STATE_NOCONNECT,
|
|
WIFI_STATE_CONNECTING,
|
|
WIFI_STATE_CONNECTED,
|
|
WIFI_STATE_NOEASYLINK,
|
|
WIFI_STATE_EASYLINK,
|
|
WIFI_STATE_EASYLINKING,
|
|
};
|
|
|
|
extern char wifi_status;
|
|
extern void wifi_init(void);
|
|
extern void ap_init(void);
|
|
extern void wifi_start_easylink(void);
|
|
extern void wifi_connect(char* wifi_ssid, char* wifi_key);
|
|
|
|
#endif
|