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.
Dependencies: MbedJSONValue mbed-http HTS221 IoTKit
Diff: main.cpp
- Revision:
- 1:06af85d78aa1
- Parent:
- 0:6c6307c24f92
- Child:
- 2:a91d74f48f9a
--- a/main.cpp Fri Dec 18 19:42:47 2020 +0000 +++ b/main.cpp Fri Dec 18 19:47:26 2020 +0000 @@ -6,17 +6,15 @@ #include "HTS221Sensor.h" #include "MbedJSONValue.h" #include "OLEDDisplay.h" -#include "Credentials.h" -#include <string> // Name of the Device shown on Website char* DeviceName = "YOUR_DEVICE_NAME"; // API Token -string token = "Bearer ENTER_TOKEN_HERE"; +char* token = "Bearer ENTER_TOKEN_HERE"; // Route to submit Temp -char* ApiRoute = "https://alarm.davidlab.ch/api/temperature"; +char* ApiRoute = "HTTPS_API_ENDPOINT"; // Trusted Root Certs const char* DST_ROOT_CA_X3 = "-----BEGIN CERTIFICATE-----\n"