IoT Hub Explorerのインストール
Azure IoT Hubへデバイス登録するためのシミュレーター
$ npm -g install iothub-explorer
npm WARN deprecated iothub-explorer@1.2.2: iothub-explorer will be retired on November 31st, 2018 and has been replaced by the Azure CLI IoT Extension: https://aka.ms/iotcli
npm WARN deprecated azure-event-hubs@0.0.8: This package has been deprecated. Please use @azure/event-hubs instead
npm WARN deprecated crypto@0.0.3: This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
/Users/k.tsumura/.nodebrew/node/v14.1.0/bin/iothub-explorer -> /Users/k.tsumura/.nodebrew/node/v14.1.0/lib/node_modules/iothub-explorer/iothub-explorer.js
+ iothub-explorer@1.2.2
added 213 packages from 188 contributors in 20.009s
Expireされてた
2018年から移行されていた
--------
DEPRECATION NOTICE: iothub-explorer will be retired on November 31st, 2018
It has been replaced by the Azure CLI IoT Extension (https://aka.ms/iotcli).
--------
gitからinstall
gitのRead meを参考にやってみた
https://github.com/Azure/azure-iot-explorer
手順
gitのページの抜粋(2020年5月)
4を実行するとブラウザで以下のページを開いてくれる(http://127.0.0.1:3000/)
使ってみる
Deviceの追加
Deviceが追加されていることをこのツールとAzure portalで確認
詰まったところ
package.jsonが見つからないと言われた。
Cloneしたディレクトリへ移動し忘れ
$ npm install
npm WARN saveError ENOENT: no such file or directory, open '/Users/k.tsumura/Desktop/test/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/Users/k.tsumura/Desktop/test/package.json'
npm WARN test No description
npm WARN test No repository field.
npm WARN test No README data
npm WARN test No license field.
up to date in 0.668s
found 0 vulnerabilities