2 #ifndef ConnectinoWlan_h 3 #define ConnectinoWlan_h 5 #include "ConnectinoModule.h" 7 #include "StxHwSerial.h" 10 CONNECTINO_WLAN_SECURITY_OPEN = 0x01,
11 CONNECTINO_WLAN_SECURITY_WEP = 0x02,
12 CONNECTINO_WLAN_SECURITY_WPA = 0x03,
13 CONNECTINO_WLAN_SECURITY_WPA2 = 0x04,
14 CONNECTINO_WLAN_SECURITY_WPA2_MIX = 0x05,
15 }CONNECTINO_WLAN_SECURITY_T;
18 CONNECTINO_WLAN_IPMODE_MANUAL = 0x01,
19 CONNECTINO_WLAN_IPMODE_DHCP = 0x02,
20 CONNECTINO_WLAN_IPMODE_AUTO = 0x03,
21 }CONNECTINO_WLAN_IPMODE_T;
48 bool moduleCallback(uint8_t subId, uint8_t reqId, uint16_t dataSize, uint8_t *data);
78 bool connect(
const char *ssid,
const char *password, CONNECTINO_WLAN_SECURITY_T security,
bool waitConnected);
105 StxHwSerial &StxSerial;
119 bool _state(uint8_t interface,
bool set);
130 bool _config(uint8_t interface,
const char *ssid,
const char *psk, uint8_t security, uint8_t channel);
137 uint8_t _getState(uint8_t interface);
144 uint8_t _getStatus(uint8_t interface);
uint8_t getModId()
Get the ID of the AJAX module.
Definition: ConnectinoWlan.cpp:169
bool disable(void)
Deactivate the station interface.
Definition: ConnectinoWlan.cpp:225
bool openAccessPoint(void)
Open the AP.
Definition: ConnectinoWlan.cpp:273
ConnectinoWlan(StxHwSerial &refSerial)
WLAN module constructor.
Definition: ConnectinoWlan.cpp:165
WLAN module.
Definition: ConnectinoWlan.h:30
bool disconnect(void)
Disconnect from a WLAN.
Definition: ConnectinoWlan.cpp:259
bool isConnected(void)
Check connection state.
Definition: ConnectinoWlan.cpp:264
bool connect(const char *ssid, const char *password, CONNECTINO_WLAN_SECURITY_T security, bool waitConnected)
Connect to a WLAN.
Definition: ConnectinoWlan.cpp:230
bool closeAccessPoint(void)
Close the AP.
Definition: ConnectinoWlan.cpp:278
bool enable(void)
Activate the station interface.
Definition: ConnectinoWlan.cpp:220
Binuart module.
Definition: ConnectinoModule.h:10
bool moduleCallback(uint8_t subId, uint8_t reqId, uint16_t dataSize, uint8_t *data)
Callback function for serial frames of the NET module.
Definition: ConnectinoWlan.cpp:174