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: IBMIoTF
Homepage
Here are the instructions to use this Client Sample:
- Get the program either in online compiler / local to the system
- Edit main.cpp to update the below pasted lines to contain correct Watson IoT Platform configuration:
char *orgId = "OrganizationID";
char *deviceType = "DeviceType";
char *deviceId = "DeviceID";
char *method = "token";
char *token = "DeviceToken";
- Save the changes and compile to get binary
- Deploy obtained binary onto FRDM K64F board and press reset button to start execution of the program
- Use any of the suitable terminal utility (screen in MAC OS) to see the log statements printed onto console by the Client Sample
- By default, the client sample after establishing secure connection to Watson IoT Platform, publishes 10 device events at the interval of 3 seconds and terminates
- Client sample subscribes to receive the device commands as well, one can try sending device commands using application, we should see a statement being dumped from processCommand callback on the console before termination of sample