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

How i can restrict nrf52832 connecttion with the custom mobile application only?

Hello, 

I am working on nRF52832 having SDK 15.3.0, Windows 10 and Segger Studio IDE.

My query is, i want to restrict my nRF board connection to a particular custom application developed by us.

It should get connect to other application like nRF Connect,but within 30 seconds it should get disconnect.

Is it possible?

If yes, kindly guide me, how can i implement it?

Parents Reply
  • Agreed (with awneil).

    In this case you can't prevent connection, but you can prevent access to data by using GATTs Read and Write Request with Authorization.

    In a custom service you can pass an "authorization token" to your device -  say a GUID that is pre-programmed into your device - in a custom characteristic. Any app connecting to your device should provide this token.

    The rest of your custom characteristics and services should be set to require read and write authorization. On handling the request you compare the token in the "authorization" characteristic and allow or deny the action accordingly.

Children
No Data
Related