Simple Mbed Cloud client application using features of K64F including Wi-Fi and SD Card

Fork of mbed-cloud-connect-example-ethernet by NXP

Configuration

  • Put ESP-WROOM-02 shield
  • Put Mbed Application Shield
  • Edit the text in the main.cpp

#define WIFI_SSID "SSID"
#define WIFI_PSWD "PASSWORD"
  • Download and replace your developer certificate from Mbed Cloud portal from the menu [Mbed Cloud] - [Certificate]
Committer:
MACRUM
Date:
Tue Jul 03 04:32:09 2018 +0000
Revision:
19:999d13f83602
Parent:
12:3f30c0e55a8e
Add sensor access code

Who changed what in which revision?

UserRevisionLine numberNew contents of line
maclobdell 12:3f30c0e55a8e 1 // ----------------------------------------------------------------------------
maclobdell 12:3f30c0e55a8e 2 // Copyright 2016-2018 ARM Ltd.
maclobdell 12:3f30c0e55a8e 3 //
maclobdell 12:3f30c0e55a8e 4 // SPDX-License-Identifier: Apache-2.0
maclobdell 12:3f30c0e55a8e 5 //
maclobdell 12:3f30c0e55a8e 6 // Licensed under the Apache License, Version 2.0 (the "License");
maclobdell 12:3f30c0e55a8e 7 // you may not use this file except in compliance with the License.
maclobdell 12:3f30c0e55a8e 8 // You may obtain a copy of the License at
maclobdell 12:3f30c0e55a8e 9 //
maclobdell 12:3f30c0e55a8e 10 // http://www.apache.org/licenses/LICENSE-2.0
maclobdell 12:3f30c0e55a8e 11 //
maclobdell 12:3f30c0e55a8e 12 // Unless required by applicable law or agreed to in writing, software
maclobdell 12:3f30c0e55a8e 13 // distributed under the License is distributed on an "AS IS" BASIS,
maclobdell 12:3f30c0e55a8e 14 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
maclobdell 12:3f30c0e55a8e 15 // See the License for the specific language governing permissions and
maclobdell 12:3f30c0e55a8e 16 // limitations under the License.
maclobdell 12:3f30c0e55a8e 17 // ----------------------------------------------------------------------------
maclobdell 12:3f30c0e55a8e 18
maclobdell 12:3f30c0e55a8e 19 #ifdef MBED_CLOUD_CLIENT_USER_CONFIG_FILE
maclobdell 12:3f30c0e55a8e 20 #include MBED_CLOUD_CLIENT_USER_CONFIG_FILE
maclobdell 12:3f30c0e55a8e 21 #endif
maclobdell 12:3f30c0e55a8e 22
maclobdell 12:3f30c0e55a8e 23 #include <stdint.h>
maclobdell 12:3f30c0e55a8e 24
maclobdell 12:3f30c0e55a8e 25 #ifdef MBED_CLOUD_DEV_UPDATE_ID
maclobdell 12:3f30c0e55a8e 26 const uint8_t arm_uc_vendor_id[16] = { "dev_manufacturer" };
maclobdell 12:3f30c0e55a8e 27 const uint16_t arm_uc_vendor_id_size = sizeof(arm_uc_vendor_id);
maclobdell 12:3f30c0e55a8e 28
maclobdell 12:3f30c0e55a8e 29 const uint8_t arm_uc_class_id[16] = { "dev_model_number" };
maclobdell 12:3f30c0e55a8e 30 const uint16_t arm_uc_class_id_size = sizeof(arm_uc_class_id);
maclobdell 12:3f30c0e55a8e 31 #endif
maclobdell 12:3f30c0e55a8e 32
maclobdell 12:3f30c0e55a8e 33 #ifdef MBED_CLOUD_DEV_UPDATE_CERT
maclobdell 12:3f30c0e55a8e 34 const uint8_t arm_uc_default_fingerprint[32] = { 0 };
maclobdell 12:3f30c0e55a8e 35 const uint16_t arm_uc_default_fingerprint_size =
maclobdell 12:3f30c0e55a8e 36 sizeof(arm_uc_default_fingerprint);
maclobdell 12:3f30c0e55a8e 37
maclobdell 12:3f30c0e55a8e 38 const uint8_t arm_uc_default_certificate[1] = { 0 };
maclobdell 12:3f30c0e55a8e 39 const uint16_t arm_uc_default_certificate_size =
maclobdell 12:3f30c0e55a8e 40 sizeof(arm_uc_default_certificate);
maclobdell 12:3f30c0e55a8e 41 #endif