yh Tang
/
NuMaker-mbed-AWS-IoT-example
NuMaker connection with AWS IoT thru MQTT/HTTPS
mbed_app.json@26:e5cfc2628e84, 2019-04-15 (annotated)
- Committer:
- ccli8
- Date:
- Mon Apr 15 17:31:56 2019 +0800
- Revision:
- 26:e5cfc2628e84
- Parent:
- 23:5111e398e651
- Child:
- 27:b12add202b88
Reduce memory footprint according to RFC 6066 TLS extension
1. Enable RFC 6066 max_fragment_length extension.
2. Reduce `MBEDTLS_SSL_IN_CONTENT_LEN`/`MBEDTLS_SSL_OUT_CONTENT_LEN` to 4KiB/4KiB from 16KiB/16KiB.
But this approach is risky because:
1. AWS IoT doesn't support RFC 6066 TLS extension yet.
2. TLS handshake may need larger I/O buffers than configured 4KiB/4KiB. 4KiB/4KiB is minimum
to pass TLS handshake per test.
Who changed what in which revision?
User | Revision | Line number | New 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 |
12:97762a6f55e9 | 15 | "nsapi.default-wifi-password" : "\"Password\"", |
ccli8 |
12:97762a6f55e9 | 16 | "drivers.uart-serial-rxbuf-size" : 1024, |
ccli8 |
12:97762a6f55e9 | 17 | "drivers.uart-serial-txbuf-size" : 1024 |
ccli8 |
1:5ffad9f24d63 | 18 | }, |
ccli8 |
1:5ffad9f24d63 | 19 | "NUMAKER_PFM_NUC472": { |
ccli8 |
21:0903065795a0 | 20 | "target.network-default-interface-type" : "ETHERNET", |
ccli8 |
26:e5cfc2628e84 | 21 | "my-tlssocket.tls-max-frag-len" : 4, |
ccli8 |
26:e5cfc2628e84 | 22 | "target.macros_add" : ["ESP8266_AT_SEL=ESP8266_AT_EXTERN"] |
ccli8 |
1:5ffad9f24d63 | 23 | }, |
ccli8 |
1:5ffad9f24d63 | 24 | "NUMAKER_PFM_M487": { |
ccli8 |
21:0903065795a0 | 25 | "target.network-default-interface-type" : "ETHERNET", |
ccli8 |
26:e5cfc2628e84 | 26 | "my-tlssocket.tls-max-frag-len" : 4, |
ccli8 |
26:e5cfc2628e84 | 27 | "target.macros_add" : ["ESP8266_AT_SEL=ESP8266_AT_EXTERN"] |
ccli8 |
15:47ab2fe3a0fc | 28 | }, |
ccli8 |
15:47ab2fe3a0fc | 29 | "NUMAKER_IOT_M487": { |
ccli8 |
15:47ab2fe3a0fc | 30 | "target.network-default-interface-type" : "WIFI", |
ccli8 |
26:e5cfc2628e84 | 31 | "my-tlssocket.tls-max-frag-len" : 4, |
ccli8 |
26:e5cfc2628e84 | 32 | "target.macros_add" : ["ESP8266_AT_SEL=ESP8266_AT_ONBOARD"] |
ccli8 |
1:5ffad9f24d63 | 33 | } |
ccli8 |
1:5ffad9f24d63 | 34 | } |
ccli8 |
1:5ffad9f24d63 | 35 | } |