This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Protecting write characteristic - best option?

Hi! I have some issues with security and BLE. I have a device (using the nrf51822 and S110 softdevice) that has a custom service with a single read write characteristic. Problem is that I want to protect that characteristic from being written to by just anyone that is around.

This device doesn't have any displays or any other inputs and it's meant to be always powered and installed in a hard to access area. I want the device to be discoverable by anyone and can be connected to by multiple peers (not at the same time). So if the device isn't already connected I want to be able to find it and connect to it. Then of course read and write that characteristic.

But I don't want just anyone to write to that characteristic - I don't mind if anyone reads it (though it's still not ideal). A perfect way would be to use a password protected connection. But if I know anything that can't be achieved with BLE?

So is it possible to give the user some predefined password which would protect the characteristic, and can later be changed if so desired?

Related