{
"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"
}
}
}
目的
前提条件
AWS IoT Core上のモノからDeguゲートウェイとDeguを削除する
Deguを最新にする
参考 MicroPythonコードの変更
参考 最新の状態へのアップデート
Deguゲートウェイのセットアップ
DeguをAWS IoTへ登録する