wifi test

Dependencies:   X_NUCLEO_IKS01A2 mbed-http

Committer:
JMF
Date:
Wed Sep 05 14:28:24 2018 +0000
Revision:
0:24d3eb812fd4
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew 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 #if defined(TARGET_FF_MORPHO)
JMF 0:24d3eb812fd4 5
JMF 0:24d3eb812fd4 6 #if !defined(SPWFSAXX_WAKEUP_PIN)
JMF 0:24d3eb812fd4 7 #define SPWFSAXX_WAKEUP_PIN PC_8 // A3
JMF 0:24d3eb812fd4 8 #endif // !defined(SPWFSAXX_WAKEUP_PIN)
JMF 0:24d3eb812fd4 9 #if !defined(SPWFSAXX_RESET_PIN)
JMF 0:24d3eb812fd4 10 #define SPWFSAXX_RESET_PIN PC_12 // D7 / NC
JMF 0:24d3eb812fd4 11 #endif // !defined(SPWFSAXX_RESET_PIN)
JMF 0:24d3eb812fd4 12
JMF 0:24d3eb812fd4 13 #else // !defined(TARGET_FF_MORPHO)
JMF 0:24d3eb812fd4 14
JMF 0:24d3eb812fd4 15 #if !defined(SPWFSAXX_WAKEUP_PIN)
JMF 0:24d3eb812fd4 16 #define SPWFSAXX_WAKEUP_PIN NC // A3
JMF 0:24d3eb812fd4 17 #endif // !defined(SPWFSAXX_WAKEUP_PIN)
JMF 0:24d3eb812fd4 18 #if !defined(SPWFSAXX_RESET_PIN)
JMF 0:24d3eb812fd4 19 #define SPWFSAXX_RESET_PIN NC // D7 / NC
JMF 0:24d3eb812fd4 20 #endif // !defined(SPWFSAXX_RESET_PIN)
JMF 0:24d3eb812fd4 21
JMF 0:24d3eb812fd4 22 #endif // !defined(TARGET_FF_MORPHO)
JMF 0:24d3eb812fd4 23
JMF 0:24d3eb812fd4 24 #define SPWFXX_SEND_RECV_PKTSIZE (730)
JMF 0:24d3eb812fd4 25
JMF 0:24d3eb812fd4 26 #define SPWFXX_OOB_ERROR "ERROR:" // "AT-S.ERROR:"
JMF 0:24d3eb812fd4 27
JMF 0:24d3eb812fd4 28 #define SPWFXX_RECV_OK "OK\n" // "AT-S.OK\n"
JMF 0:24d3eb812fd4 29 #define SPWFXX_RECV_WIFI_UP "+WIND:24:WiFi Up:%u.%u.%u.%u\n" // "+WIND:24:WiFi Up:%*u:%u.%u.%u.%u\n"
JMF 0:24d3eb812fd4 30 #define SPWFXX_RECV_IP_ADDR "# ip_ipaddr = %u.%u.%u.%u\n" // "AT-S.Var:ip_ipaddr=%u.%u.%u.%u\n"
JMF 0:24d3eb812fd4 31 #define SPWFXX_RECV_GATEWAY "# ip_gw = %u.%u.%u.%u\n" // "AT-S.Var:ip_gw=%u.%u.%u.%u\n"
JMF 0:24d3eb812fd4 32 #define SPWFXX_RECV_NETMASK "# ip_netmask = %u.%u.%u.%u\n" // "AT-S.Var:ip_netmask=%u.%u.%u.%u\n"
JMF 0:24d3eb812fd4 33 #define SPWFXX_RECV_RX_RSSI "# 0.rx_rssi = %d\n" // "AT-S.Var:0.rx_rssi=%d\n"
JMF 0:24d3eb812fd4 34 #define SPWFXX_RECV_MAC_ADDR "# nv_wifi_macaddr = %x:%x:%x:%x:%x:%x\n" // "AT-S.Var:nv_wifi_macaddr=%x:%x:%x:%x:%x:%x\n"
JMF 0:24d3eb812fd4 35 #define SPWFXX_RECV_DATALEN " DATALEN: %u\n" // "AT-S.Query:%u\n"
JMF 0:24d3eb812fd4 36 #define SPWFXX_RECV_PENDING_DATA ":%d:%d\n" // "::%u:%*u:%u\n"
JMF 0:24d3eb812fd4 37 #define SPWFXX_RECV_SOCKET_CLOSED ":%d\n" // ":%u:%*u\n"
JMF 0:24d3eb812fd4 38
JMF 0:24d3eb812fd4 39 #define SPWFXX_SEND_FWCFG "AT&F" // "AT+S.FCFG"
JMF 0:24d3eb812fd4 40 #define SPWFXX_SEND_DISABLE_LE "AT+S.SCFG=localecho1,0" // "AT+S.SCFG=console_echo,0"
JMF 0:24d3eb812fd4 41 #define SPWFXX_SEND_DSPLY_CFGV "AT&V" // "AT+S.GCFG"
JMF 0:24d3eb812fd4 42 #define SPWFXX_SEND_GET_CONS_STATE "AT+S.GCFG=console1_enabled" // "AT+S.GCFG=console_enabled"
JMF 0:24d3eb812fd4 43 #define SPWFXX_SEND_GET_CONS_SPEED "AT+S.GCFG=console1_speed" // "AT+S.GCFG=console_speed"
JMF 0:24d3eb812fd4 44 #define SPWFXX_SEND_GET_HWFC_STATE "AT+S.GCFG=console1_hwfc" // "AT+S.GCFG=console_hwfc"
JMF 0:24d3eb812fd4 45 #define SPWFXX_SEND_GET_CONS_DELIM "AT+S.GCFG=console1_delimiter" // "AT+S.GCFG=console_delimiter"
JMF 0:24d3eb812fd4 46 #define SPWFXX_SEND_GET_CONS_ERRS "AT+S.GCFG=console1_errs" // "AT+S.GCFG=console_errs"
JMF 0:24d3eb812fd4 47 #define SPWFXX_SEND_DISABLE_FC "AT+S.SCFG=console1_hwfc,0" // "AT+S.SCFG=console_hwfc,0"
JMF 0:24d3eb812fd4 48 #define SPWFXX_SEND_ENABLE_FC "AT+S.SCFG=console1_hwfc,1" // "AT+S.SCFG=console_hwfc,1"
JMF 0:24d3eb812fd4 49 #define SPWFXX_SEND_SW_RESET "AT+CFUN=1" // "AT+S.RESET"
JMF 0:24d3eb812fd4 50 #define SPWFXX_SEND_SAVE_SETTINGS "AT&W" // "AT+S.WCFG"
JMF 0:24d3eb812fd4 51 #define SPWFXX_SEND_WIND_OFF_HIGH "AT+S.SCFG=wind_off_high," // "AT+S.SCFG=console_wind_off_high,"
JMF 0:24d3eb812fd4 52 #define SPWFXX_SEND_WIND_OFF_MEDIUM "AT+S.SCFG=wind_off_medium," // "AT+S.SCFG=console_wind_off_medium,"
JMF 0:24d3eb812fd4 53 #define SPWFXX_SEND_WIND_OFF_LOW "AT+S.SCFG=wind_off_low," // "AT+S.SCFG=console_wind_off_low,"
JMF 0:24d3eb812fd4 54
JMF 0:24d3eb812fd4 55 #define SPWFXX_WINDS_HIGH_ON "0x00000000" // "0x00100000"
JMF 0:24d3eb812fd4 56 #define SPWFXX_WINDS_MEDIUM_ON "0x00000000" // "0x80000000"
JMF 0:24d3eb812fd4 57
JMF 0:24d3eb812fd4 58 #endif // SPWFSAXX_AT_STRINGS_H