NuMaker connection with AWS IoT thru MQTT/HTTPS

Dependencies:   MQTT_ON_AWS

Committer:
ccli8
Date:
Tue Oct 29 10:59:34 2019 +0800
Revision:
29:e890b0fdce53
Parent:
28:4c196d0b769b
Child:
33:c3a985807206
Update to mbed-os 5.14.2 and related modifications

1. Provide custom entropy source on targets without real TRNG
The targets below don't have real TRNG and cannot annouce TRNG support. A custom entropy source with EADC seeded PRNG is given to remedy it:
- NUMAKER_PFM_NUC47
- NUMAKER_PFM_M487
- NUMAKER_IOT_M487
2. Override mbed_main() for:
(1) Simulating provision process
(2) Handling host command via event queue
3. Remove memory statistics printing at end of main(). Printed via host command instead.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ccli8 1:5ffad9f24d63 1 {
ccli8 1:5ffad9f24d63 2 "macros": [
ccli8 1:5ffad9f24d63 3 "MBED_CONF_APP_MAIN_STACK_SIZE=4096",
ccli8 12:97762a6f55e9 4 "MBEDTLS_USER_CONFIG_FILE=\"mbedtls_user_config.h\""
ccli8 1:5ffad9f24d63 5 ],
ccli8 1:5ffad9f24d63 6 "target_overrides": {
ccli8 1:5ffad9f24d63 7 "*": {
ccli8 13:8114b540d342 8 "platform.stdio-baud-rate" : 115200,
ccli8 12:97762a6f55e9 9 "platform.stdio-convert-newlines" : true,
ccli8 12:97762a6f55e9 10 "platform.heap-stats-enabled" : 1,
ccli8 23:5111e398e651 11 "platform.stack-stats-enabled" : 1,
ccli8 12:97762a6f55e9 12 "mbed-trace.enable" : null,
ccli8 12:97762a6f55e9 13 "nsapi.default-wifi-security" : "WPA_WPA2",
ccli8 12:97762a6f55e9 14 "nsapi.default-wifi-ssid" : "\"SSID\"",
ccli8 29:e890b0fdce53 15 "nsapi.default-wifi-password" : "\"PASSWORD\""
ccli8 1:5ffad9f24d63 16 },
ccli8 1:5ffad9f24d63 17 "NUMAKER_PFM_NUC472": {
ccli8 21:0903065795a0 18 "target.network-default-interface-type" : "ETHERNET",
ccli8 29:e890b0fdce53 19 "my-tlssocket.tls-max-frag-len" : 4,
ccli8 29:e890b0fdce53 20 "target.macros_add" : ["MBEDTLS_ENTROPY_HARDWARE_ALT"]
ccli8 1:5ffad9f24d63 21 },
ccli8 1:5ffad9f24d63 22 "NUMAKER_PFM_M487": {
ccli8 21:0903065795a0 23 "target.network-default-interface-type" : "ETHERNET",
ccli8 29:e890b0fdce53 24 "my-tlssocket.tls-max-frag-len" : 4,
ccli8 29:e890b0fdce53 25 "target.macros_add" : ["MBEDTLS_ENTROPY_HARDWARE_ALT"]
ccli8 15:47ab2fe3a0fc 26 },
ccli8 15:47ab2fe3a0fc 27 "NUMAKER_IOT_M487": {
ccli8 15:47ab2fe3a0fc 28 "target.network-default-interface-type" : "WIFI",
ccli8 26:e5cfc2628e84 29 "my-tlssocket.tls-max-frag-len" : 4,
ccli8 28:4c196d0b769b 30 "esp8266.tx" : "PH_8",
ccli8 28:4c196d0b769b 31 "esp8266.rx" : "PH_9",
ccli8 28:4c196d0b769b 32 "esp8266.rts" : "A2",
ccli8 28:4c196d0b769b 33 "esp8266.cts" : "A3",
ccli8 28:4c196d0b769b 34 "esp8266.rst" : "PH_3",
ccli8 29:e890b0fdce53 35 "esp8266.provide-default" : true,
ccli8 29:e890b0fdce53 36 "target.macros_add" : ["MBEDTLS_ENTROPY_HARDWARE_ALT"]
ccli8 27:b12add202b88 37 },
ccli8 28:4c196d0b769b 38 "NU_PFM_M2351_NPSA_NS": {
ccli8 27:b12add202b88 39 "target.network-default-interface-type" : "WIFI",
ccli8 27:b12add202b88 40 "my-tlssocket.tls-max-frag-len" : 4,
ccli8 28:4c196d0b769b 41 "esp8266.tx" : "PD_1",
ccli8 28:4c196d0b769b 42 "esp8266.rx" : "PD_0",
ccli8 28:4c196d0b769b 43 "esp8266.rts" : "PD_3",
ccli8 28:4c196d0b769b 44 "esp8266.cts" : "PD_2",
ccli8 28:4c196d0b769b 45 "esp8266.rst" : "NC",
ccli8 28:4c196d0b769b 46 "esp8266.pwr" : "PD_7",
ccli8 28:4c196d0b769b 47 "esp8266.provide-default" : true,
ccli8 28:4c196d0b769b 48 "target.extra_labels_remove" : ["NU_PREBUILD_SECURE"],
ccli8 28:4c196d0b769b 49 "target.mbed_rom_start" : "0x10010000",
ccli8 28:4c196d0b769b 50 "target.mbed_rom_size" : "0x70000",
ccli8 28:4c196d0b769b 51 "target.mbed_ram_start" : "0x30002000",
ccli8 28:4c196d0b769b 52 "target.mbed_ram_size" : "0x16000"
ccli8 28:4c196d0b769b 53 },
ccli8 28:4c196d0b769b 54 "NUMAKER_IOT_M263A": {
ccli8 28:4c196d0b769b 55 "target.network-default-interface-type" : "WIFI",
ccli8 28:4c196d0b769b 56 "my-tlssocket.tls-max-frag-len" : 4,
ccli8 28:4c196d0b769b 57 "esp8266.tx" : "PC_7",
ccli8 28:4c196d0b769b 58 "esp8266.rx" : "PC_6",
ccli8 28:4c196d0b769b 59 "esp8266.rts" : "PE_13",
ccli8 28:4c196d0b769b 60 "esp8266.cts" : "PC_8",
ccli8 28:4c196d0b769b 61 "esp8266.rst" : "PE_12",
ccli8 28:4c196d0b769b 62 "esp8266.provide-default" : true
ccli8 1:5ffad9f24d63 63 }
ccli8 1:5ffad9f24d63 64 }
ccli8 1:5ffad9f24d63 65 }