Enabling SSH is highly recommended as it simplifies access to the device and allows you to make changes quickly. More information available here.
This guide will walk you through the process of starting your secure Device using IoTivity library on the Raspberry Pi.
To set up your Raspberry Pi, please follow this step-by-step tutorial.
Enabling SSH is highly recommended as it simplifies access to the device and allows you to make changes quickly. More information available here.
More information how to access Raspberry Pi remotely can be found here.
ssh pi@{raspberryPiIpAddress}
Default login username is pi
and password is raspberry
if you didn’t change.
sudo apt-get update & apt-get install build-essential git curl openssl cmake
Checkout IoTivity-Lite:
# execute commands on the Raspberry Pi
git clone https://github.com/iotivity/iotivity-lite.git --recursive
cd iotivity-lite
Build Cloud Server example:
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_VERBOSE_MAKEFILE=ON -DBUILD_TESTING=OFF -DOC_CLOUD_ENABLED=ON -DOC_COLLECTIONS_IF_CREATE_ENABLED=ON -DOC_MNT_ENABLED=ON -DOC_OSCORE_ENABLED=OFF -DOC_RESOURCE_ACCESS_IN_RFOTM_ENABLED=ON -DOC_DISCOVERY_RESOURCE_OBSERVABLE_ENABLED=ON -DPLGD_DEV_TIME_ENABLED=ON ..
make cloud_server
Run Cloud Server example:
cd ./apps
./cloud_server
Now, the Cloud Server example running on your Raspberry Pi allows you to discover your device and connect it to the plgd hub.
plgd makes it simpler to build a successful IoT initiative – to create a proof of concept, evaluate, optimize, and scale.