I am writing a python app that uses the nRF51 dongle and the s130 SoftDevice. I need to pair with a peripheral that uses a fixed passkey. Is there a python implementation of the device manager, or do I have to implement the pairing by hand?
I am writing a python app that uses the nRF51 dongle and the s130 SoftDevice. I need to pair with a peripheral that uses a fixed passkey. Is there a python implementation of the device manager, or do I have to implement the pairing by hand?
Unfortunately, I don't think there is a python implementation of the device manager/peer manager. However, if your application does only require pairing/bonding with a few devices, it shouldn't be too hard to implement.
For implementation of bonding with static passkey, you can follow this message sequence chart.
Note that when using static passkey, you have to set the static passkey option using sd_ble_opt_set(..). It may be useful to take a look at this thread.