I'm using the nrf51822 with the IoT softdevice and SDK as an IPv6/6LoWPAN peripheral and Linux with a BLE dongle in the central role. Basically, I have everything working such that:
echo "connect 00:AA:BB:XX:YY:ZZ 1" > /sys/kernel/debug/bluetooth/6lowpan_control
does what it is supposed to. What I can't see how to do, however, is, as the peripheral, disconnect the connection with the Linux gateway. The callback is clear if the gateway calls disconnect, but I don't know how to do the inverse.
I see that the function ble_ipsp_disconnect(ble_ipsp_handle_t const * p_handle)
exists, but I have no idea where to get an object of type ble_ipsp_handle_t
and I don't see anything of that type declared in the code (I'm guessing it's used in the precompiled libraries).
Anyone know how to do this?