NuMaker mbed cloud v1.2 example

This example has been used on the following platforms

Follow these instructions to get credentials https://cloud.mbed.com/docs/v1.2/quick-start/connecting-your-device-to-mbed-cloud.html

https://os.mbed.com/media/cache/platforms/NuMaker-PFM-NUC472Small.png.170x170_q85.png

https://os.mbed.com/media/cache/platforms/NuMaker-PFM-M487.png.170x170_q85.png

mbed_app.json

Committer:
cyliang
Date:
2018-04-17
Revision:
12:e48289a9e1ef
Parent:
11:96f41e7c9638

File content as of revision 12:e48289a9e1ef:

{
    "macros": [
        "MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\"",
        "MBED_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config.h\"",
        "MBED_CLOUD_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config.h\"",
        "PAL_DTLS_PEER_MIN_TIMEOUT=5000",
        "MBED_CONF_APP_MAIN_STACK_SIZE=4608"
    ],
    "target_overrides": {
        "*": {
            "platform.stdio-baud-rate": 115200,
            "platform.stdio-convert-newlines": true,
            "mbed-trace.enable": null
        },
        "NUMAKER_PFM_M487": {
            "target.macros_add": [
                "PAL_INTERNAL_FLASH_SECTION_1_ADDRESS=0x7E000",
                "PAL_INTERNAL_FLASH_SECTION_2_ADDRESS=0x7F000",
                "PAL_INTERNAL_FLASH_SECTION_1_SIZE=0x1000",
                "PAL_INTERNAL_FLASH_SECTION_2_SIZE=0x1000"
            ],
            "target.macros_remove": ["MBEDTLS_CONFIG_HW_SUPPORT"],
            "sd.SPI_MOSI": "D11",
            "sd.SPI_MISO": "D12",
            "sd.SPI_CLK":  "D13",
            "sd.SPI_CS":   "D10"
        },
        "NUMAKER_PFM_NUC472": {
            "target.macros_add": [
                "PAL_INTERNAL_FLASH_SECTION_1_ADDRESS=0x7E000",
                "PAL_INTERNAL_FLASH_SECTION_2_ADDRESS=0x7F000",
                "PAL_INTERNAL_FLASH_SECTION_1_SIZE=0x1000",
                "PAL_INTERNAL_FLASH_SECTION_2_SIZE=0x1000"
            ],
            "target.macros_remove": ["MBEDTLS_CONFIG_HW_SUPPORT"],
            "sd.SPI_MOSI": "PF_0",
            "sd.SPI_MISO": "PD_15",
            "sd.SPI_CLK":  "PD_14",
            "sd.SPI_CS":   "PD_13"
        }        
    },
    "config": {
        "network-interface":{
            "help": "options are ETHERNET,WIFI",
            "value": "WIFI"
        },
        "wifi-ssid": {
            "help": "WiFi SSID",
            "value": "\"SSID\""
        },
        "wifi-password": {
            "help": "WiFi Password",
            "value": "\"password\""
        },    
        "developer-mode": {
            "help": "Enable Developer mode to skip Factory enrollment",
            "value": 1
        }        
    }
}