Simple Mbed Cloud Client application using features of K64 & K66
Connect to Mbed Cloud!
This example was customized a bit for FRDM-K66 and FRDM-K64F.
It depends on having an SD Card plugged in for storage of credentials. It could be changed later to use a SPI flash or other storage on a shield or wired in.
The app keeps track of how many times switch 2 (SW2) is pressed. The value can be retrieved via a GET request to Mbed Cloud.
Also, it will blink a pattern based on milisecond (ms) timing values that can be sent from Mbed Cloud. The pattern can be sent with a PUT request and the blinking sequence can be triggered by a POST request.
Diff: mbed_app.json
- Revision:
- 14:10b59d30bf7e
- Parent:
- 13:49062a0d117e
diff -r 49062a0d117e -r 10b59d30bf7e mbed_app.json
--- a/mbed_app.json Fri Oct 05 13:11:30 2018 -0500
+++ b/mbed_app.json Mon Oct 08 22:00:32 2018 -0500
@@ -28,7 +28,8 @@
"update-client.application-details": "(40*1024)"
},
"K66F": {
- "target.features_add" : ["BOOTLOADER"],
+ "target.features_add" : ["BOOTLOADER", "STORAGE"],
+ "target.components_add": ["SD"],
"sotp-section-1-address" : "(32*1024)",
"sotp-section-1-size" : "(4*1024)",
"sotp-section-2-address" : "(36*1024)",