![](/media/cache/profiles/5f55d0baa59f4bc1dc393149183f1492.jpg.50x50_q85.jpg)
wifi test
Dependencies: X_NUCLEO_IKS01A2 mbed-http
easy-connect/wifi-x-nucleo-idw01m1/SPWFSA04/spwfsa04_at_strings.h@0:24d3eb812fd4, 2018-09-05 (annotated)
- Committer:
- JMF
- Date:
- Wed Sep 05 14:28:24 2018 +0000
- Revision:
- 0:24d3eb812fd4
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
JMF | 0:24d3eb812fd4 | 1 | #ifndef SPWFSAXX_AT_STRINGS_H |
JMF | 0:24d3eb812fd4 | 2 | #define SPWFSAXX_AT_STRINGS_H |
JMF | 0:24d3eb812fd4 | 3 | |
JMF | 0:24d3eb812fd4 | 4 | /* Define beyond macro if your X-NUCLEO-IDW04A1 expansion board has NOT the `WIFI_RST` HW patch applied on it */ |
JMF | 0:24d3eb812fd4 | 5 | // #define IDW04A1_WIFI_HW_BUG_WA // delegated to mbed config system |
JMF | 0:24d3eb812fd4 | 6 | |
JMF | 0:24d3eb812fd4 | 7 | #if defined(TARGET_FF_ARDUINO) |
JMF | 0:24d3eb812fd4 | 8 | |
JMF | 0:24d3eb812fd4 | 9 | #if !defined(SPWFSAXX_WAKEUP_PIN) |
JMF | 0:24d3eb812fd4 | 10 | #define SPWFSAXX_WAKEUP_PIN A3 |
JMF | 0:24d3eb812fd4 | 11 | #endif |
JMF | 0:24d3eb812fd4 | 12 | #if !defined(SPWFSAXX_RESET_PIN) |
JMF | 0:24d3eb812fd4 | 13 | #ifndef IDW04A1_WIFI_HW_BUG_WA |
JMF | 0:24d3eb812fd4 | 14 | #define SPWFSAXX_RESET_PIN D7 |
JMF | 0:24d3eb812fd4 | 15 | #else // IDW04A1_WIFI_HW_PATCH |
JMF | 0:24d3eb812fd4 | 16 | #define SPWFSAXX_RESET_PIN NC |
JMF | 0:24d3eb812fd4 | 17 | #endif // !IDW04A1_WIFI_HW_PATCH |
JMF | 0:24d3eb812fd4 | 18 | #endif |
JMF | 0:24d3eb812fd4 | 19 | |
JMF | 0:24d3eb812fd4 | 20 | #else // !defined(TARGET_FF_ARDUINO) |
JMF | 0:24d3eb812fd4 | 21 | |
JMF | 0:24d3eb812fd4 | 22 | #if !defined(SPWFSAXX_WAKEUP_PIN) |
JMF | 0:24d3eb812fd4 | 23 | #define SPWFSAXX_WAKEUP_PIN NC |
JMF | 0:24d3eb812fd4 | 24 | #endif |
JMF | 0:24d3eb812fd4 | 25 | #if !defined(SPWFSAXX_RESET_PIN) |
JMF | 0:24d3eb812fd4 | 26 | #define SPWFSAXX_RESET_PIN NC |
JMF | 0:24d3eb812fd4 | 27 | #endif |
JMF | 0:24d3eb812fd4 | 28 | |
JMF | 0:24d3eb812fd4 | 29 | #endif // !defined(TARGET_FF_ARDUINO) |
JMF | 0:24d3eb812fd4 | 30 | |
JMF | 0:24d3eb812fd4 | 31 | #define SPWFXX_SEND_RECV_PKTSIZE (730) |
JMF | 0:24d3eb812fd4 | 32 | |
JMF | 0:24d3eb812fd4 | 33 | #define SPWFXX_OOB_ERROR "AT-S.ERROR:" // "ERROR:" |
JMF | 0:24d3eb812fd4 | 34 | |
JMF | 0:24d3eb812fd4 | 35 | #define SPWFXX_RECV_OK "AT-S.OK\n" // "OK\n" |
JMF | 0:24d3eb812fd4 | 36 | #define SPWFXX_RECV_WIFI_UP "+WIND:24:WiFi Up:%*u:%u.%u.%u.%u\n" // "+WIND:24:WiFi Up:%u.%u.%u.%u\n" |
JMF | 0:24d3eb812fd4 | 37 | #define SPWFXX_RECV_IP_ADDR "AT-S.Var:ip_ipaddr=%u.%u.%u.%u\n" // "# ip_ipaddr = %u.%u.%u.%u\n" |
JMF | 0:24d3eb812fd4 | 38 | #define SPWFXX_RECV_GATEWAY "AT-S.Var:ip_gw=%u.%u.%u.%u\n" // "# ip_gw = %u.%u.%u.%u\n" |
JMF | 0:24d3eb812fd4 | 39 | #define SPWFXX_RECV_NETMASK "AT-S.Var:ip_netmask=%u.%u.%u.%u\n" // "# ip_netmask = %u.%u.%u.%u\n" |
JMF | 0:24d3eb812fd4 | 40 | #define SPWFXX_RECV_RX_RSSI "AT-S.Var:0.rx_rssi=%d\n" // "# 0.rx_rssi = %d\n" |
JMF | 0:24d3eb812fd4 | 41 | #define SPWFXX_RECV_MAC_ADDR "AT-S.Var:nv_wifi_macaddr=%x:%x:%x:%x:%x:%x\n" // "# nv_wifi_macaddr = %x:%x:%x:%x:%x:%x\n" |
JMF | 0:24d3eb812fd4 | 42 | #define SPWFXX_RECV_DATALEN "AT-S.Query:%u\n" // " DATALEN: %u\n" |
JMF | 0:24d3eb812fd4 | 43 | #define SPWFXX_RECV_PENDING_DATA "::%u:%*u:%u\n" // ":%d:%d\n" |
JMF | 0:24d3eb812fd4 | 44 | #define SPWFXX_RECV_SOCKET_CLOSED ":%u:%*u\n" // ":%d\n" |
JMF | 0:24d3eb812fd4 | 45 | |
JMF | 0:24d3eb812fd4 | 46 | #define SPWFXX_SEND_FWCFG "AT+S.FCFG" // "AT&F" |
JMF | 0:24d3eb812fd4 | 47 | #define SPWFXX_SEND_DISABLE_LE "AT+S.SCFG=console_echo,0" // "AT+S.SCFG=localecho1,0" |
JMF | 0:24d3eb812fd4 | 48 | #define SPWFXX_SEND_DSPLY_CFGV "AT+S.GCFG" // "AT&V" |
JMF | 0:24d3eb812fd4 | 49 | #define SPWFXX_SEND_GET_CONS_STATE "AT+S.GCFG=console_enabled" // "AT+S.GCFG=console1_enabled" |
JMF | 0:24d3eb812fd4 | 50 | #define SPWFXX_SEND_GET_CONS_SPEED "AT+S.GCFG=console_speed" // "AT+S.GCFG=console1_speed" |
JMF | 0:24d3eb812fd4 | 51 | #define SPWFXX_SEND_GET_HWFC_STATE "AT+S.GCFG=console_hwfc" // "AT+S.GCFG=console1_hwfc" |
JMF | 0:24d3eb812fd4 | 52 | #define SPWFXX_SEND_GET_CONS_DELIM "AT+S.GCFG=console_delimiter" // "AT+S.GCFG=console1_delimiter" |
JMF | 0:24d3eb812fd4 | 53 | #define SPWFXX_SEND_GET_CONS_ERRS "AT+S.GCFG=console_errs" // "AT+S.GCFG=console1_errs" |
JMF | 0:24d3eb812fd4 | 54 | #define SPWFXX_SEND_DISABLE_FC "AT+S.SCFG=console_hwfc,0" // "AT+S.SCFG=console1_hwfc,0" |
JMF | 0:24d3eb812fd4 | 55 | #define SPWFXX_SEND_ENABLE_FC "AT+S.SCFG=console_hwfc,1" // "AT+S.SCFG=console1_hwfc,1" |
JMF | 0:24d3eb812fd4 | 56 | #define SPWFXX_SEND_SW_RESET "AT+S.RESET" // "AT+CFUN=1" |
JMF | 0:24d3eb812fd4 | 57 | #define SPWFXX_SEND_SAVE_SETTINGS "AT+S.WCFG" // "AT&W" |
JMF | 0:24d3eb812fd4 | 58 | #define SPWFXX_SEND_WIND_OFF_HIGH "AT+S.SCFG=console_wind_off_high," // "AT+S.SCFG=wind_off_high," |
JMF | 0:24d3eb812fd4 | 59 | #define SPWFXX_SEND_WIND_OFF_MEDIUM "AT+S.SCFG=console_wind_off_medium," // "AT+S.SCFG=wind_off_medium," |
JMF | 0:24d3eb812fd4 | 60 | #define SPWFXX_SEND_WIND_OFF_LOW "AT+S.SCFG=console_wind_off_low," // "AT+S.SCFG=wind_off_low," |
JMF | 0:24d3eb812fd4 | 61 | |
JMF | 0:24d3eb812fd4 | 62 | #define SPWFXX_WINDS_HIGH_ON "0x00100000" // "0x00000000" |
JMF | 0:24d3eb812fd4 | 63 | #define SPWFXX_WINDS_MEDIUM_ON "0x80000000" // "0x00000000" |
JMF | 0:24d3eb812fd4 | 64 | |
JMF | 0:24d3eb812fd4 | 65 | #endif // SPWFSAXX_AT_STRINGS_H |