mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-12 21:18:13 +08:00
30 lines
468 B
C
30 lines
468 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
|