NuMaker Pelion Device Management example

Fork of mbed-os-example-pelion by cc li

Committer:
ccli8
Date:
Thu Aug 05 15:06:55 2021 +0800
Revision:
18:029355615cc7
Parent:
0:f78ec4a22e67
Update to mbed-os 5.15.7, mcc 4.10.0, and NUSD

1. Update to mbed-os 5.15.7
2. Update ot mbed-cloud-client 4.10.0
3. Update NUSD

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ccli8 0:f78ec4a22e67 1 // ----------------------------------------------------------------------------
ccli8 0:f78ec4a22e67 2 // Copyright 2019 ARM Ltd.
ccli8 0:f78ec4a22e67 3 //
ccli8 0:f78ec4a22e67 4 // SPDX-License-Identifier: Apache-2.0
ccli8 0:f78ec4a22e67 5 //
ccli8 0:f78ec4a22e67 6 // Licensed under the Apache License, Version 2.0 (the "License");
ccli8 0:f78ec4a22e67 7 // you may not use this file except in compliance with the License.
ccli8 0:f78ec4a22e67 8 // You may obtain a copy of the License at
ccli8 0:f78ec4a22e67 9 //
ccli8 0:f78ec4a22e67 10 // http://www.apache.org/licenses/LICENSE-2.0
ccli8 0:f78ec4a22e67 11 //
ccli8 0:f78ec4a22e67 12 // Unless required by applicable law or agreed to in writing, software
ccli8 0:f78ec4a22e67 13 // distributed under the License is distributed on an "AS IS" BASIS,
ccli8 0:f78ec4a22e67 14 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
ccli8 0:f78ec4a22e67 15 // See the License for the specific language governing permissions and
ccli8 0:f78ec4a22e67 16 // limitations under the License.
ccli8 0:f78ec4a22e67 17 // ----------------------------------------------------------------------------
ccli8 0:f78ec4a22e67 18
ccli8 0:f78ec4a22e67 19 #ifndef MBED_CLOUD_CLIENT_USER_CONFIG_H
ccli8 0:f78ec4a22e67 20 #define MBED_CLOUD_CLIENT_USER_CONFIG_H
ccli8 0:f78ec4a22e67 21
ccli8 0:f78ec4a22e67 22 #define MBED_CLOUD_CLIENT_ENDPOINT_TYPE "default"
ccli8 0:f78ec4a22e67 23 #define MBED_CLOUD_CLIENT_TRANSPORT_MODE_TCP
ccli8 0:f78ec4a22e67 24 #define MBED_CLOUD_CLIENT_LIFETIME 3600
ccli8 0:f78ec4a22e67 25
ccli8 0:f78ec4a22e67 26 #ifdef MBED_CONF_MBED_CLIENT_SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE
ccli8 0:f78ec4a22e67 27 #define SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE MBED_CONF_MBED_CLIENT_SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE
ccli8 0:f78ec4a22e67 28 #else
ccli8 0:f78ec4a22e67 29 #define SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE 512
ccli8 0:f78ec4a22e67 30 #endif
ccli8 0:f78ec4a22e67 31
ccli8 0:f78ec4a22e67 32 /* set flag to enable update support in mbed Cloud client */
ccli8 0:f78ec4a22e67 33 #define MBED_CLOUD_CLIENT_SUPPORT_UPDATE
ccli8 0:f78ec4a22e67 34
ccli8 0:f78ec4a22e67 35 /* set download buffer size in bytes (min. 1024 bytes) */
ccli8 0:f78ec4a22e67 36 #define MBED_CLOUD_CLIENT_UPDATE_BUFFER 1024
ccli8 0:f78ec4a22e67 37
ccli8 0:f78ec4a22e67 38 #define MBED_CLOUD_DEV_UPDATE_CERT
ccli8 0:f78ec4a22e67 39 #define MBED_CLOUD_DEV_UPDATE_ID
ccli8 0:f78ec4a22e67 40
ccli8 0:f78ec4a22e67 41 #endif /* MBED_CLOUD_CLIENT_USER_CONFIG_H */