Open yoshidam-at opened 4 years ago
DeguGW # apt update DeguGW # apt upgrade
DeguGW # apt install -y ssh
LinuxPC $ scp ca.pem.key ユーザーID@IPアドレス:/home/ユーザー名/. LinuxPC $ scp ca.pem.crt ユーザーID@IPアドレス:/home/ユーザー名/. DeguGW # mv /home/ユーザー名/ca.pem.key /etc/coap-mqtt/. DeguGW # mv /home/ユーザー名/ca.pem.crt /etc/coap-mqtt/.
{ "key" : "/etc/coap-mqtt/private.pem.key", "cert" : "/etc/coap-mqtt/certificate.pem.crt", "cafile" : "/etc/coap-mqtt/RootCA.crt", "aws_endpoint" : "xxxxx.iot.ap-northeast-1.amazonaws.com", "secretaccesskey" : "asdfghjkl", "accesskeyid" : "AWS123", "region" : "ap-northeast-1", "gw": { "preset": { "ca": { "=comment=" : [ "you must set ca certificate file and put it.", "if you do not create device certificate,", "you must set key file path and put it."], "key" : "/etc/coap-mqtt/ca.pem.key", ☆1☆ "cert" : "/etc/coap-mqtt/ca.pem.crt" ☆2☆ }, "device": { "=comment=" : [ "if you already create device certificate,", "set certificate and key pair on this device and write file path."], "key" : "", "cert" : "" } }, "=comment=" : "===== do not change below properties. =====", "mqtt": { "cert" : "/etc/coap-mqtt/deviceAndCa.crt.pem", "key" : "/etc/coap-mqtt/device.ref.key.pem", "ca" : "/etc/coap-mqtt/AmazonRootCA3.pem" } } }
DeguGW # tail -f /var/log/syslog
目的
前提条件
AWS IoT Core上のモノからDeguゲートウェイとDeguを削除する
Deguを最新にする
参考 MicroPythonコードの変更
参考 最新の状態へのアップデート
Deguゲートウェイのセットアップ
DeguをAWS IoTへ登録する