Using MCS Library
Last updated
Last updated
The MCS Library allows you to connect to MCS(MediaTek Cloud Sandbox) and MCSLite web services with Arduino IDE on LinkIt 7697.
MCS provides free cloud-based data and device management services used in the development and pre-commercial testing of Wearable and IoT devices.
In MCS, a test device provides several data channels define by prototypes. Each test device can be identified with unique Device ID and Device Key.
A prototype is the blueprint of the device you’re developing.
Prototype defines Data Channels. A data channel represents the following:
Data generated by a component of a device that will be stored in the MCS, usually represented by a display data channel.
A command that can be sent from the MCS to the device, usually represented by a controller data channel.
Test devices are created under each Prototype with unique Device ID and Device Key, which you can use in the MCS APIs to identify which device the data is pushed to and pulled from.
To learn more, please visit MCS Introduction and Key Concepts pages.
Devices can communicate with the MCS server over HTTP Restful APIs and other protocols. The Arduino package for LinkIt 7697 provides an MCS Library that wraps these protocols into simplified interfaces.
MCSLite allows you to host your own MCS server on Windows, macOS, Linux and other common operating systems. With MCS Lite, you can have almost all the major features that MCS has just by double clicking on the App! If you are looking for a on-premises IoT platform which can eliminate the concerns about data security, network latency and customization, MediaTek Cloud Sandbox Lite Edition (MCS Lite) is a good choice for you.
For more detailed information, please visit MCS Lite Introduction.
MCSLite is distributed as a free and open-source software under MIT license. Whether you want to customize the user interface, support other databases or add additional data analysis and encryption mechanism, you can directly modify the source code or use the API provided by MCS Lite to expand the functions.
On LinkIt 7697 HDK, you can also use MCS library, which is included in the Arduino board support package to implement MCS based projects. MCS library acts as a wrapper for the basic operations between LinkIt 7697 HDK and MCS server, including:
connecting to specified the MCS server.
creating data channels, except gamepad controller.
uploading data points of specified data channel onto the MCS server.
receiving data points of specified data channel from the MCS server.
However, only TCP and HTTP protocols are supported in this library.
Next, learn how to control an LED light on the LinkIt 7697 HDK from MCS web console by using the MCS library at LED_control example.