Azure_IOT_SDK_C sample run in linux
1. Install git,cmake in ubuntu
2. clone azure-iot-sdk-c:
git clone --recursive https://github.com/Azure/azure-iot-sdk-c.git
cd azure-iot-sdk-c
git submodule update --init
sourcele directory: ~/azure_iot_sdk_c
3. build the c sdk in linux
cd azure-iot-sdk-c
mkdir cmake
cd cmake
cmake ..
cmake --build .
4. Edit the sample le entering the proper connection string from the
Azure Portal:
static const char* connectionString = "[device connection string]";
sample directory:
~/azure-iot-sdk-c/iothub_client/samples/iothub_ll_telemetry_sample
5. Build and run sample
cd
./azure-iot-sdk-c/cmake/iothub_client/samples/iothub_ll_telemetry_sampl
e
make
./iothub_ll_telemetry_sample
6. Run message
评论0
最新资源