esp32-wifi-manager/include/esp32-wifi-manager.h
Morgan Allen b2a6792610 use defines for event states
this was causing some wonky linking issue I could not figure

esp32-on-air/build/esp32-wifi-manager/libesp32-wifi-manager.a(esp32-wifi-manager.o):(.rodata.AP_AVAILABLE+0x0):
multiple definition of `AP_AVAILABLE'
esp32-on-air/build/main/libmain.a(main.o):(.rodata.AP_AVAILABLE+0x0):
first defined here
esp32-on-air/build/esp32-wifi-manager/libesp32-wifi-manager.a(esp32-wifi-manager.o):(.rodata.WIFI_CONNECTING+0x0):
multiple definition of `WIFI_CONNECTING'
esp32-on-air/build/main/libmain.a(main.o):(.rodata.WIFI_CONNECTING+0x0):
first defined here
esp32-on-air/build/esp32-wifi-manager/libesp32-wifi-manager.a(esp32-wifi-manager.o):(.rodata.WIFI_CONNECTED+0x0):
multiple definition of `WIFI_CONNECTED'
esp32-on-air/build/main/libmain.a(main.o):(.rodata.WIFI_CONNECTED+0x0):
first defined here
2018-09-03 20:31:32 -07:00

19 lines
428 B
C

#ifndef __WIFI_MANAGER_H
#define __WIFI_MANAGER_H
#define WIFI_MANAGER_MAGIC (0xb00b000c)
void wifi_manager_save_config();
void wifi_manager_load_config();
void wifi_manager_reset_store();
#define WIFI_CONNECTED (BIT0)
#define WIFI_CONNECTING (BIT1)
#define AP_AVAILABLE (BIT2)
uint8_t wifi_manager_ap_count();
uint8_t wifi_manager_add_ap(char *essid, char *password);
EventGroupHandle_t wifi_manager_start();
#endif