0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

IBM Watson IoT に Raspberry Pi を接続する

Last updated at Posted at 2017-06-16

参考にしたページ
余ったRaspberry Piで始めるIoT入門 Bluemixと接続するチュートリアル

プログラムのダウンロード

curl -LO https://github.com/ibm-messaging/iot-raspberrypi/releases/download/1.0.2.1/iot_1.0-2_armhf.deb

インストール

sudo dpkg -i iot_1.0-2_armhf.deb

プログラムの稼動の確認

sudo systemctl status iot

接続する URL を調べる

sudo service iot getdeviceid

http://quickstart.internetofthings.ibmcloud.com/?deviceId=****
という mac アドレスを引数とするアドレスが示される

接続している時の状態

ibm_watoson_iot_on.png

接続の切断

sudo systemctl stop iot

切断した時の状態

ibm_watoson_iot_off.png

再接続

sudo systemctl start iot

自動起動を止めるには

sysv-rc-conf をインストール

sudo apt install sysv-rc-conf

自動起動を停止

sudo sysv-rc-conf iot off

自動起動しないことの確認

sudo sysv-rc-conf --list iot
0
2
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?