Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
This application contains the example codes to:
1) Connect PFM-M487/PFM-NUC472 boards to Pelion
2) Enable Firmware update
For storage, PFM-M487/PFM-NUC472 support both SPI interface SD and built-in SD bus SD.
For connectivity, PFM-M487/PFM-NUC472 support Ethernet (on-board) by default.
This example supports Ethernet and built-in SD by default.

Diff: simple-mbed-cloud-client/mbed-cloud-client/mbed-cloud-client/MbedCloudClientConfigCheck.h
- Revision:
- 0:83caa8fa1d2c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/simple-mbed-cloud-client/mbed-cloud-client/mbed-cloud-client/MbedCloudClientConfigCheck.h Fri Jul 06 04:15:24 2018 +0000 @@ -0,0 +1,75 @@ +// ---------------------------------------------------------------------------- +// Copyright 2016-2017 ARM Ltd. +// +// SPDX-License-Identifier: Apache-2.0 +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------- + + +#ifndef MBED_CLOUD_CONFIG_CHECK_H +#define MBED_CLOUD_CONFIG_CHECK_H + +/*! \file MbedCloudClientConfigCheck.h +* \brief Configuration options check. +* +* This set checks and validates the compile-time options that can be made for possible client library. +* NOTE: Not to be used by developers. +*/ + +#ifndef MBED_CLOUD_CLIENT_ENDPOINT_TYPE +#error "MBED_CLOUD_CLIENT_ENDPOINT_TYPE must be defined with valid endpoint type" +#endif + +#ifndef MBED_CLOUD_CLIENT_LIFETIME +#error "MBED_CLOUD_CLIENT_LIFETIME must be defined with valid non-zero lifetime value in seconds, default is 60" +#endif + +#ifndef MBED_CLOUD_CLIENT_LISTEN_PORT +#error "MBED_CLOUD_CLIENT_LISTEN_PORT must be defined with valid non-zero port number, default is 0" +#endif + +#if !defined (SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE) || (SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE < 16) +#error "SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE must be defined with one of the values from this - 128, 256, 512 or 1024" +#endif + +#if defined (MBED_CLOUD_CLIENT_TRANSPORT_MODE_TCP_QUEUE) +#error "TCP queue mode not supported!" +#endif + +#if defined (MBED_CLOUD_CLIENT_TRANSPORT_MODE_UDP) && ( defined(MBED_CLOUD_CLIENT_TRANSPORT_MODE_TCP) || \ +defined (MBED_CLOUD_CLIENT_TRANSPORT_MODE_UDP_QUEUE) || defined(MBED_CLOUD_CLIENT_TRANSPORT_MODE_TCP_QUEUE)) +#error "Only one MBED_CLOUD_CLIENT_TRANSPORT_MODE can be defined at a time" +#endif + +#if defined (MBED_CLOUD_CLIENT_TRANSPORT_MODE_TCP) && ( defined(MBED_CLOUD_CLIENT_TRANSPORT_MODE_UDP) || \ +defined (MBED_CLOUD_CLIENT_TRANSPORT_MODE_UDP_QUEUE) || defined(MBED_CLOUD_CLIENT_TRANSPORT_MODE_TCP_QUEUE)) +#error "Only one MBED_CLOUD_CLIENT_TRANSPORT_MODE can be defined at a time" +#endif + +#if defined (MBED_CLOUD_CLIENT_TRANSPORT_MODE_UDP_QUEUE) && ( defined(MBED_CLOUD_CLIENT_TRANSPORT_MODE_TCP) || \ +defined (MBED_CLOUD_CLIENT_TRANSPORT_MODE_UDP) || defined(MBED_CLOUD_CLIENT_TRANSPORT_MODE_TCP_QUEUE)) +#error "Only one MBED_CLOUD_CLIENT_TRANSPORT_MODE can be defined at a time" +#endif + +#if defined (MBED_CLOUD_CLIENT_TRANSPORT_MODE_TCP_QUEUE) && ( defined(MBED_CLOUD_CLIENT_TRANSPORT_MODE_TCP) || \ +defined (MBED_CLOUD_CLIENT_TRANSPORT_MODE_UDP_QUEUE) || defined(MBED_CLOUD_CLIENT_TRANSPORT_MODE_UDP)) +#error "Only one MBED_CLOUD_CLIENT_TRANSPORT_MODE can be defined at a time" +#endif + +#if !defined(MBED_CLOUD_CLIENT_TRANSPORT_MODE_UDP) && !defined(MBED_CLOUD_CLIENT_TRANSPORT_MODE_TCP) \ +&& !defined(MBED_CLOUD_CLIENT_TRANSPORT_MODE_UDP_QUEUE) && !defined(MBED_CLOUD_CLIENT_TRANSPORT_MODE_TCP_QUEUE) +#error "One MBED_CLOUD_CLIENT_TRANSPORT_MODE must be defined at a time" +#endif + +#endif // MBED_CLOUD_CONFIG_CHECK_H