我正在尝试设置一个MQTT-SN代理(rsmb),并使用多个pi3作为客户端。
首先,我将建立一个 6lowpan over ble 连接。
设置 pi3(RASPBIAN JESSIE 内核 v4.4)
sudo su
hciconfig hci0 reset
modprobe bluetooth_6lowpan
echo 1 > /sys/kernel/debug/bluetooth/6lowpan_enable
hciconfig hci0 leadv
BLE 网关(Ubuntu 14.04)
sudo su
hciconfig hci0 reset
modprobe bluetooth_6lowpan
echo 35 > /sys/kernel/debug/bluetooth/6lowpan_psm
echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
echo "connect *my_pi3_bluetooth_address* 1" > /sys/kernel/debug/bluetooth/6lowpan_control
ifconfig bt0 add 2001:xxxx:xxxx:xxxx::/64
service radvd restart
我的 6lowpan over ble 连接正在工作。
现在我想在此连接中使用 MQTT-SN 协议。
如果我只使用本地连接,那就没问题了。
但是如果我通过 BLE 连接使用 6lowpan,我认为一些数据包会丢失。
ERROR Keep alive error: timed out while waiting for a PUBLISH gateway
我该如何解决这个问题?
我发现需要拔掉网线,就一切正常了
我正在使用 6lowpan 通过 BLE 实现 MQTT-SN。您能告诉我您为实现这一目标采取了哪些步骤吗?