![](/media/cache/group/Advantech_logo.jpg.50x50_q85.jpg)
Generic Pelion Device Management example for various Advantech modules.
This example is known to work great on the following platforms:
- WISE-1530 WiFi Module using DB-1505 carrier board and external SD card reader.
Example Functionality
This example showcases the following device functionality:
- On timer button increment, simulate Pelion LWM2M button resource change
Use this example with Mbed CLI
1. Import the application into your desktop:
mbed import https://os.mbed.com/teams/Advantech/code/pelion-example-common cd pelion-example-common
2. Download your developer certificate from pelion portal
3. Compile the program
mbed compile -t <toolchain> -m <TARGET_BOARD>
(supported toolchains : GCC_ARM / ARM / IAR)
4. Copy the binary file pelion-example-common.bin to your mbed device.
drivers/network/COMPONENT_WIFI_IDW04A1/SPWFSA04/spwfsa04_at_strings.h
- Committer:
- chuanga
- Date:
- 2019-03-12
- Revision:
- 0:43ff9e3bc244
File content as of revision 0:43ff9e3bc244:
#ifndef SPWFSAXX_AT_STRINGS_H #define SPWFSAXX_AT_STRINGS_H /* Define beyond macro if your X-NUCLEO-IDW04A1 expansion board has NOT the `WIFI_RST` HW patch applied on it */ // #define IDW04A1_WIFI_HW_BUG_WA // delegated to mbed config system #if defined(TARGET_FF_ARDUINO) #if !defined(SPWFSAXX_WAKEUP_PIN) #define SPWFSAXX_WAKEUP_PIN A3 #endif #if !defined(SPWFSAXX_RESET_PIN) #ifndef IDW04A1_WIFI_HW_BUG_WA #define SPWFSAXX_RESET_PIN D7 #else // IDW04A1_WIFI_HW_PATCH #define SPWFSAXX_RESET_PIN NC #endif // !IDW04A1_WIFI_HW_PATCH #endif #else // !defined(TARGET_FF_ARDUINO) #if !defined(SPWFSAXX_WAKEUP_PIN) #define SPWFSAXX_WAKEUP_PIN NC #endif #if !defined(SPWFSAXX_RESET_PIN) #define SPWFSAXX_RESET_PIN NC #endif #endif // !defined(TARGET_FF_ARDUINO) #define SPWFXX_SEND_RECV_PKTSIZE (730) #define SPWFXX_OOB_ERROR "AT-S.ERROR:" // "ERROR:" #define SPWFXX_RECV_OK "AT-S.OK\n" // "OK\n" #define SPWFXX_RECV_WIFI_UP "+WIND:24:WiFi Up:%*u:%u.%u.%u.%u\n" // "+WIND:24:WiFi Up:%u.%u.%u.%u\n" #define SPWFXX_RECV_IP_ADDR "AT-S.Var:ip_ipaddr=%u.%u.%u.%u\n" // "# ip_ipaddr = %u.%u.%u.%u\n" #define SPWFXX_RECV_GATEWAY "AT-S.Var:ip_gw=%u.%u.%u.%u\n" // "# ip_gw = %u.%u.%u.%u\n" #define SPWFXX_RECV_NETMASK "AT-S.Var:ip_netmask=%u.%u.%u.%u\n" // "# ip_netmask = %u.%u.%u.%u\n" #define SPWFXX_RECV_RX_RSSI "AT-S.Var:0.rx_rssi=%d\n" // "# 0.rx_rssi = %d\n" #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" #define SPWFXX_RECV_DATALEN "AT-S.Query:%u\n" // " DATALEN: %u\n" #define SPWFXX_RECV_PENDING_DATA "::%u:%*u:%u\n" // ":%d:%d\n" #define SPWFXX_RECV_SOCKET_CLOSED ":%u:%*u\n" // ":%d\n" #define SPWFXX_SEND_FWCFG "AT+S.FCFG" // "AT&F" #define SPWFXX_SEND_DISABLE_LE "AT+S.SCFG=console_echo,0" // "AT+S.SCFG=localecho1,0" #define SPWFXX_SEND_DSPLY_CFGV "AT+S.GCFG" // "AT&V" #define SPWFXX_SEND_GET_CONS_STATE "AT+S.GCFG=console_enabled" // "AT+S.GCFG=console1_enabled" #define SPWFXX_SEND_GET_CONS_SPEED "AT+S.GCFG=console_speed" // "AT+S.GCFG=console1_speed" #define SPWFXX_SEND_GET_HWFC_STATE "AT+S.GCFG=console_hwfc" // "AT+S.GCFG=console1_hwfc" #define SPWFXX_SEND_GET_CONS_DELIM "AT+S.GCFG=console_delimiter" // "AT+S.GCFG=console1_delimiter" #define SPWFXX_SEND_GET_CONS_ERRS "AT+S.GCFG=console_errs" // "AT+S.GCFG=console1_errs" #define SPWFXX_SEND_DISABLE_FC "AT+S.SCFG=console_hwfc,0" // "AT+S.SCFG=console1_hwfc,0" #define SPWFXX_SEND_ENABLE_FC "AT+S.SCFG=console_hwfc,1" // "AT+S.SCFG=console1_hwfc,1" #define SPWFXX_SEND_SW_RESET "AT+S.RESET" // "AT+CFUN=1" #define SPWFXX_SEND_SAVE_SETTINGS "AT+S.WCFG" // "AT&W" #define SPWFXX_SEND_WIND_OFF_HIGH "AT+S.SCFG=console_wind_off_high," // "AT+S.SCFG=wind_off_high," #define SPWFXX_SEND_WIND_OFF_MEDIUM "AT+S.SCFG=console_wind_off_medium," // "AT+S.SCFG=wind_off_medium," #define SPWFXX_SEND_WIND_OFF_LOW "AT+S.SCFG=console_wind_off_low," // "AT+S.SCFG=wind_off_low," #define SPWFXX_WINDS_HIGH_ON "0x00100000" // "0x00000000" #define SPWFXX_WINDS_MEDIUM_ON "0x80000000" // "0x00000000" #endif // SPWFSAXX_AT_STRINGS_H