SNIC UART Interface library: Serial to Wi-Fi library for Murata TypeYD Wi-Fi module. For more information about TypeYD: http://www.murata.co.jp/products/microwave/module/lbwb1zzydz/index.html
Dependents: SNIC-xively-jumpstart-demo SNIC-FluentLogger-example TCPEchoServer murataDemo ... more
Fork of YDwifiInterface by
Diff: YDwifi/YDwifi.h
- Revision:
- 6:70f522934032
- Parent:
- 5:ef3befe3edad
--- a/YDwifi/YDwifi.h Thu Mar 13 08:44:33 2014 +0000
+++ b/YDwifi/YDwifi.h Thu Mar 13 10:33:18 2014 +0000
@@ -43,6 +43,19 @@
e_ADHOC = 1
}E_NETWORK_TYPE;
+ /** Wi-Fi status
+ */
+ typedef enum WIFI_STATUS {
+ /** Wi-Fi OFF */
+ e_STATUS_OFF = 0,
+ /** No network */
+ e_NO_NETWORK,
+ /** Connected to AP (STA mode) */
+ e_STA_JOINED,
+ /** Started on AP mode */
+ e_AP_STARTED
+ }E_WIFI_STATUS;
+
protected:
/** GEN_FW_VER_GET_REQ Command */
typedef struct
@@ -80,6 +93,14 @@
unsigned char seq;
}tagWIFI_GET_STA_RSSI_REQ_T;
+ /** WIFI_GET_STATUS_REQ Command */
+ typedef struct
+ {
+ unsigned char cmd_sid;
+ unsigned char seq;
+ unsigned char interface;
+ }tagWIFI_GET_STATUS_REQ_T;
+
/** WIFI_SCAN_REQ Command */
typedef struct
{
@@ -95,7 +116,7 @@
static C_YDwifi *mInstance_p;
Thread *mUartRecvThread_p;
Mutex mUartMutex;
- DigitalInOut mModuleReset;
+// DigitalInOut mModuleReset;
C_YDwifiUartCommand mUartCommand;
RawSerial mUart;
muRata

Murata TypeYD