Learn about the hardware, software, and compilation requirements for integrating Link SDK for C with your device.
Hardware environment
Link SDK for C supports various operating systems and hardware devices. To integrate or port the SDK, your device must meet the following requirements:
-
The device supports the TCP/IP protocol stack, either natively or through external modules.
-
The device has at least 20 KB of ROM and 2 KB of RAM.
-
No limit is set on the operating system of the device.
The sample code in Link SDK for C is developed for Linux.
-
For more information, see Port Link SDK for C.
Development environment
Link SDK for C supports cross-platform porting. The development environment must meet the following requirements:
-
Development language: C99 standard.
-
Development tool: any C compiler.
-
Compilation method: Makefile-based compilation.
Compilation and running
On Linux and macOS, you can compile and run the sample code after you configure the SDK. Go to the root directory of the SDK and perform the following steps:
-
Run the make command to compile the SDK.
-
The executable sample code file is generated in the ./output/ directory.
To establish an MQTT connection, run the ./output/mqtt-basic-demo command.
If the operating system of your device is not Linux, use a compilation tool that is supported by your operating system to compile the SDK.