NuMaker connection with AWS IoT thru MQTT/HTTPS

Dependencies:   MQTT_ON_AWS

Committer:
ccli8
Date:
Mon Apr 15 15:40:16 2019 +0800
Revision:
25:edf568984d27
Refine MyTLSSocket code

1. Refactor
2. Add mbed_lib.json to configure its behavior

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ccli8 25:edf568984d27 1 {
ccli8 25:edf568984d27 2 "name": "my-tlssocket",
ccli8 25:edf568984d27 3 "config": {
ccli8 25:edf568984d27 4 "tls-debug-level": {
ccli8 25:edf568984d27 5 "help": "Debug level for TLS. Larger value for more verbose message. Its value can be 0, 1, 2, 3, or 4",
ccli8 25:edf568984d27 6 "value": 1
ccli8 25:edf568984d27 7 },
ccli8 25:edf568984d27 8 "tls-max-frag-len": {
ccli8 25:edf568984d27 9 "help": "Maximum fragment length value for the payload in one packet, doesn't include TLS header and encryption overhead. Is needed for constrainted devices having low MTU sizes, Value 0 = disabled, 1 = MBEDTLS_SSL_MAX_FRAG_LEN_512, 2= MBEDTLS_SSL_MAX_FRAG_LEN_1024, 3 = MBEDTLS_SSL_MAX_FRAG_LEN_2048, 4 = MBEDTLS_SSL_MAX_FRAG_LEN_4096",
ccli8 25:edf568984d27 10 "value": 0
ccli8 25:edf568984d27 11 }
ccli8 25:edf568984d27 12 }
ccli8 25:edf568984d27 13 }