没有从 RaspberryPi IoTF 快速入门配方发送数据
No data being sent from RaspberryPi IoTF Quickstart recipe
我有一个 RaspberryPi2 运行 快速入门食谱遵循 https://developer.ibm.com/iotfoundation/recipes/raspberry-pi/
上的说明
这包括安装 "quickstart" - 从
curl -LO https://github.com/ibm-messaging/iot-raspberrypi/releases/download/1.0.2/iot_1.0-1_armhf.deb,通过 sudo dpkg -i iot_1.0-1_armhf.deb 安装,然后使用 "service iot status" 检查服务是 运行。响应符合预期
[好的] iot 是运行。
下一步 - 使用以下方法获取设备 ID:service iot getdeviceid
而且我应该可以在上面提到的网页上输入这个并看到数据。
iotf 页面说:
We are waiting for your device to send us a message
The device ID you have entered is valid, but we are waiting for your
device to send us a message.
Get your device to send us some valid data - we'll visualize it for
you
一些初始连接失败
但是最后一次尝试通过了 /var/log/system 说:
Jun 28 21:14:55 rasppi2 iot[2029]: Connecting to
ssl://XXXXX.messaging.internetofthings.ibmcloud.com:8883 with client
Id: d:XXXXX:RaspberryPi2:
Jun 28 21:14:55 rasppi2 ntpd_intres[2135]: DNS 0.debian.pool.ntp.org -> 217.79.179.106
Jun 28 21:14:55 rasppi2 ntpd_intres[2135]: DNS 1.debian.pool.ntp.org ->
178.33.227.201
Jun 28 21:14:55 rasppi2 ntpd_intres[2135]: DNS 2.debian.pool.ntp.org -> 193.225.118.162
Jun 28 21:14:55 rasppi2 ntpd_intres[2135]: DNS 3.debian.pool.ntp.org -> 148.251.6.51
Jun 28 21:14:55 rasppi2 iot[2029]: Connection was successful
Jun 28 21:14:58 rasppi2 iot[2029]: Subscription succeeded
还有什么我应该检查的吗?
看起来您可能已经存储了设备注册信息并尝试连接它而不是快速启动?
连接到 ssl://XXXXX.messaging.internetofthings.ibmcloud.com:8883,客户端 ID:d:XXXXX:RaspberryPi2:
要使用快速启动连接,我希望客户端 ID 显示快速启动。
您是否执行了方法中的步骤,包括将注册的设备信息复制到 pi 上的 device.cfg 文件中?
如果您作为注册设备进行连接,则您无法对使用注册客户端 ID 连接的设备使用快速入门实时可视化网页。
我有一个 RaspberryPi2 运行 快速入门食谱遵循 https://developer.ibm.com/iotfoundation/recipes/raspberry-pi/
上的说明这包括安装 "quickstart" - 从 curl -LO https://github.com/ibm-messaging/iot-raspberrypi/releases/download/1.0.2/iot_1.0-1_armhf.deb,通过 sudo dpkg -i iot_1.0-1_armhf.deb 安装,然后使用 "service iot status" 检查服务是 运行。响应符合预期 [好的] iot 是运行。 下一步 - 使用以下方法获取设备 ID:service iot getdeviceid 而且我应该可以在上面提到的网页上输入这个并看到数据。
iotf 页面说:
We are waiting for your device to send us a message
The device ID you have entered is valid, but we are waiting for your device to send us a message.
Get your device to send us some valid data - we'll visualize it for you
一些初始连接失败 但是最后一次尝试通过了 /var/log/system 说:
Jun 28 21:14:55 rasppi2 iot[2029]: Connecting to ssl://XXXXX.messaging.internetofthings.ibmcloud.com:8883 with client Id: d:XXXXX:RaspberryPi2:
Jun 28 21:14:55 rasppi2 ntpd_intres[2135]: DNS 0.debian.pool.ntp.org -> 217.79.179.106
Jun 28 21:14:55 rasppi2 ntpd_intres[2135]: DNS 1.debian.pool.ntp.org -> 178.33.227.201
Jun 28 21:14:55 rasppi2 ntpd_intres[2135]: DNS 2.debian.pool.ntp.org -> 193.225.118.162
Jun 28 21:14:55 rasppi2 ntpd_intres[2135]: DNS 3.debian.pool.ntp.org -> 148.251.6.51
Jun 28 21:14:55 rasppi2 iot[2029]: Connection was successful
Jun 28 21:14:58 rasppi2 iot[2029]: Subscription succeeded
还有什么我应该检查的吗?
看起来您可能已经存储了设备注册信息并尝试连接它而不是快速启动?
连接到 ssl://XXXXX.messaging.internetofthings.ibmcloud.com:8883,客户端 ID:d:XXXXX:RaspberryPi2:
要使用快速启动连接,我希望客户端 ID 显示快速启动。
您是否执行了方法中的步骤,包括将注册的设备信息复制到 pi 上的 device.cfg 文件中?
如果您作为注册设备进行连接,则您无法对使用注册客户端 ID 连接的设备使用快速入门实时可视化网页。