Hi,
I'm on nrf52dk platform.
I have flashed the MQTT publisher firmware in IOT section provided in nRF5 SDK 14.2, config the ip address and auth info in code; established a border router according to https://devzone.nordicsemi.com/b/blog/posts/6lowpan-for-bluetooth-low-energy-on-openwrt , set up a MQTT broker on remote server with an ipV6 address.
In nRF5 sdk documents, it says:
-
Ensure that the MQTT broker address is set up correctly in the application.
-
Open a terminal program (for example PuTTY) to monitor the messages from the kit on the COM port.
-
Compile and program the application. Observe that the device is advertising.
-
Prepare the Linux router device by initializing the 6LoWPAN module.
-
Discover the advertising device by using the hcitool lescan command.
-
Connect to the discovered device from the Linux console by using the Bluetooth 6LoWPAN connect command.
-
Check if the connected state is reflected by the LEDs.
-
Prepare the IPv6 global prefix for the btX interface.
-
Press Button 1. Observe that the Mosquitto broker reports a new connection from the client "nrfPublisher".
- Observe that LED 2 is lit, which means that the connection is established. In case LED 2 is not turned on within 30 seconds, the procedure might have failed. This can be verified by observing a notification of MQTT_EVT_CONNACK with a failure (non-zero result code). Retry MQTT connection by pressing Button 1. Pressing the button before the procedure is complete, either with success or failure, will result in application assertion.
-
Press Button 2.
-
Observe that LED 4 is lit. This step may take several seconds to complete.
-
Observe the publish message and its acknowledgment logged on the Mosquitto broker.
Now, I'm stuck on step 7, YES, the LED_1 stop blink to indicate ipv6 connection established, and I can ping6 the nrf52dk from the router, when push button_1 to connect, nothing happened. Perhaps becaurse I can not install radvd package on my router, this package never exist in the newest openwrt build. Any other way to proceed next?