• Honestly, this is going to end up being pretty low priority for me until more people want it or it's actually required for a big order. However it doesn't mean you can't get it done.

    The majority of the code for connection handling in Espruino is here: https://github.com/espruino/Espruino/blob/master/targets/nrf5x/bluetooth.c

    It's just like a massive version of an nRF example - If you search for mitm and compare code sections you'll probably find the bits you need.

    Maybe try building your own version of Espruino with those changes and see if you can get it to do what you want. Even if you don't feel up to creating a pull request with the full code that allows it to be turned on and off, I could add that bit of the code once I know what code changes you had to make to make it do what you want.

  • Thanks @gordon! I understand the aphorism is more truth than humor.

    Thanks for the pointers to the code; it does indeed look like I might be able to make a version to implement the security I want as default behavior. I'll give it a try and let you know if I'm successful. It is worth trying to use espruino to have flexibility.

    I'm using the NRF52832 dev board version and running it on an Adafruit board for a small project for a local theater. We don't want some smart patron to grab the peripheral with their phone.

    Thanks again -- Bill

About

Avatar for billsalt @billsalt started