在自己的pc机上完成Iotivity的编译工作后,下一个阶段我们将利用Iotivity实现树莓派和pc的一个简单的通信。
本帖子主要干的工作是在树莓派3上安装agile-iotivity。
准备材料:Raspberry pi 3,SD卡(至少16g),Raspbian的img镜像,SDFormatter,Win32DiskImager
1.安装预备工具
$ sudo apt-get update && sudo apt-get dist-upgrade
来更新系统中的更新。
4.在树莓派上安装Iotivity
$ git clone https://github.com/Agile-IoT/agile-iotivity
$ cd agile-iotivity
$ sudo -k ./install_iotivity.sh
IoTivity will be installed with the following settings:
TARGET_OS: linux
TARGET_ARCH: arm
TARGET_TRANSPORT: ALL
SECURED: 0
RELEASE: yes
ROUTING: EP
BUILD_SAMPLE:OFF
IoTivity Version: 1.2.0
IoTivity working directory: /home/pi/agile-iotivity/iotivity_wdir
If you agree type Y otherwise N:
Installation Completed!
You can find an example here:....
表示安装成功! $ git clone https://github.com/RIOT-OS/RIOT
$ cd RIOT
$ git checkout 2016.10
RIOT的2016.10版本与IoTivity pkg相兼容