Simple Mbed Cloud client application using features of K64F including Wi-Fi and SD Card

Fork of mbed-cloud-connect-example-ethernet by NXP

Configuration

  • Put ESP-WROOM-02 shield
  • Put Mbed Application Shield
  • Edit the text in the main.cpp

#define WIFI_SSID "SSID"
#define WIFI_PSWD "PASSWORD"
  • Download and replace your developer certificate from Mbed Cloud portal from the menu [Mbed Cloud] - [Certificate]
Committer:
MACRUM
Date:
Tue Jul 03 04:32:09 2018 +0000
Revision:
19:999d13f83602
Parent:
17:0a894bf1f5f2
Add sensor access code

Who changed what in which revision?

UserRevisionLine numberNew contents of line
maclobdell 11:ae1f6fe932dc 1 {
maclobdell 11:ae1f6fe932dc 2 "macros": [
maclobdell 11:ae1f6fe932dc 3 "MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\"",
maclobdell 11:ae1f6fe932dc 4 "PAL_USER_DEFINED_CONFIGURATION=\"sotp_fs_config_MbedOS.h\"",
maclobdell 11:ae1f6fe932dc 5 "MBED_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config.h\"",
maclobdell 11:ae1f6fe932dc 6 "MBED_CLOUD_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config.h\"",
maclobdell 11:ae1f6fe932dc 7 "PAL_DTLS_PEER_MIN_TIMEOUT=5000",
maclobdell 11:ae1f6fe932dc 8 "MBED_CONF_APP_MAIN_STACK_SIZE=4608",
maclobdell 11:ae1f6fe932dc 9 "ARM_UC_USE_PAL_BLOCKDEVICE=1",
maclobdell 11:ae1f6fe932dc 10 "MBED_CLOUD_CLIENT_UPDATE_STORAGE=ARM_UCP_FLASHIAP_BLOCKDEVICE"
maclobdell 11:ae1f6fe932dc 11 ],
maclobdell 11:ae1f6fe932dc 12 "target_overrides": {
maclobdell 11:ae1f6fe932dc 13 "*": {
maclobdell 11:ae1f6fe932dc 14 "platform.stdio-baud-rate": 115200,
maclobdell 11:ae1f6fe932dc 15 "platform.stdio-convert-newlines": true,
maclobdell 11:ae1f6fe932dc 16 "update-client.storage-address" : "(1024*1024*64)",
maclobdell 11:ae1f6fe932dc 17 "update-client.storage-size" : "(1024*1024*2)",
maclobdell 11:ae1f6fe932dc 18 "update-client.storage-locations": "1",
maclobdell 11:ae1f6fe932dc 19 "mbed-trace.enable": null
maclobdell 17:0a894bf1f5f2 20 },
maclobdell 17:0a894bf1f5f2 21 "K64F": {
maclobdell 17:0a894bf1f5f2 22 "sotp-section-1-address" : "0xFE000",
maclobdell 17:0a894bf1f5f2 23 "sotp-section-1-size" : "0x1000",
maclobdell 17:0a894bf1f5f2 24 "sotp-section-2-address" : "0xFF000",
maclobdell 17:0a894bf1f5f2 25 "sotp-section-2-size" : "0x1000",
maclobdell 17:0a894bf1f5f2 26 "sotp-num-sections" : 2
maclobdell 17:0a894bf1f5f2 27 },
maclobdell 17:0a894bf1f5f2 28 "K66F": {
maclobdell 17:0a894bf1f5f2 29 "sotp-section-1-address" : "0x1FE000",
maclobdell 17:0a894bf1f5f2 30 "sotp-section-1-size" : "0x1000",
maclobdell 17:0a894bf1f5f2 31 "sotp-section-2-address" : "0x1FF000",
maclobdell 17:0a894bf1f5f2 32 "sotp-section-2-size" : "0x1000",
maclobdell 17:0a894bf1f5f2 33 "sotp-num-sections" : 2
maclobdell 17:0a894bf1f5f2 34 }
maclobdell 17:0a894bf1f5f2 35
maclobdell 11:ae1f6fe932dc 36 },
maclobdell 11:ae1f6fe932dc 37 "config": {
maclobdell 11:ae1f6fe932dc 38 "format-storage-layer-on-error": {
maclobdell 11:ae1f6fe932dc 39 "help": "Whether to format the storage layer when it cannot be read - always disable for production devices!",
maclobdell 11:ae1f6fe932dc 40 "value": 1
maclobdell 11:ae1f6fe932dc 41 },
maclobdell 11:ae1f6fe932dc 42 "developer-mode": {
maclobdell 11:ae1f6fe932dc 43 "help": "Enable Developer mode to skip Factory enrollment",
maclobdell 11:ae1f6fe932dc 44 "value": 1
maclobdell 11:ae1f6fe932dc 45 },
maclobdell 11:ae1f6fe932dc 46
maclobdell 11:ae1f6fe932dc 47 "sotp-section-1-address": {
maclobdell 11:ae1f6fe932dc 48 "help": "Flash sector address for SOTP sector 1",
maclobdell 11:ae1f6fe932dc 49 "macro_name": "PAL_INTERNAL_FLASH_SECTION_1_ADDRESS",
maclobdell 11:ae1f6fe932dc 50 "value": null
maclobdell 11:ae1f6fe932dc 51 },
maclobdell 11:ae1f6fe932dc 52 "sotp-section-1-size": {
maclobdell 11:ae1f6fe932dc 53 "help": "Flash sector size for SOTP sector 1",
maclobdell 11:ae1f6fe932dc 54 "macro_name": "PAL_INTERNAL_FLASH_SECTION_1_SIZE",
maclobdell 11:ae1f6fe932dc 55 "value": null
maclobdell 11:ae1f6fe932dc 56 },
maclobdell 11:ae1f6fe932dc 57 "sotp-section-2-address": {
maclobdell 11:ae1f6fe932dc 58 "help": "Flash sector address for SOTP sector 2",
maclobdell 11:ae1f6fe932dc 59 "macro_name": "PAL_INTERNAL_FLASH_SECTION_2_ADDRESS",
maclobdell 11:ae1f6fe932dc 60 "value": null
maclobdell 11:ae1f6fe932dc 61 },
maclobdell 11:ae1f6fe932dc 62 "sotp-section-2-size": {
maclobdell 11:ae1f6fe932dc 63 "help": "Flash sector size for SOTP sector 2",
maclobdell 11:ae1f6fe932dc 64 "macro_name": "PAL_INTERNAL_FLASH_SECTION_2_SIZE",
maclobdell 11:ae1f6fe932dc 65 "value": null
maclobdell 17:0a894bf1f5f2 66 },
maclobdell 17:0a894bf1f5f2 67 "sotp-num-sections": {
maclobdell 17:0a894bf1f5f2 68 "help": "Number of SOTP sections",
maclobdell 17:0a894bf1f5f2 69 "macro_name": "PAL_INT_FLASH_NUM_SECTIONS",
maclobdell 17:0a894bf1f5f2 70 "value": null
maclobdell 17:0a894bf1f5f2 71 }
maclobdell 11:ae1f6fe932dc 72 }
maclobdell 11:ae1f6fe932dc 73 }