summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/wifi.h
blob: 732a7a97ad66cd475b5d6770a60cc56de3fc9ef4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdint.h>
#include "event.h"

#define EOS_WIFI_MTYPE_SCAN         0
#define EOS_WIFI_MTYPE_CONNECT      1
#define EOS_WIFI_MTYPE_DISCONNECT   2

#define EOS_WIFI_MAX_MTYPE          3

void eos_wifi_init(void);
void eos_wifi_set_handler(unsigned char mtype, eos_evt_handler_t handler);

void eos_wifi_connect(const char *ssid, const char *pass);
void eos_wifi_disconnect(void);