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

How to design a GATT service

Hi Nordic Team,

My Board: nRF5340 DK; SDK: nRF Connect SDK v1.5.0

I am new to BLE developement. I am trying to design a GATT service which can be accessed by nRF Connect SDK. I need to switch between BLE peripheral roles and BLE central roles(with a hardcoded peer device address to connect), but my end solution will not have any buttons to switch between the roles. So i am planning to create a custom service. 

Design approach:

Service 1: "BLE MODE SWITCH" 

Characeristics 1: Switch between central and peripheral roles . based on the value sent from the nRF connect for mobile to DK board. 1- central mode, 2 - peripheral mode

Characteristics 2:Switch between open and secure pairing. based on the value sent from the nRF connect for mobile to DK board. 1- justworks mode, 2 - passkey mode

Characteristics 3 (future implimentation): Switch between mesh and non-mesh modes.based on the value sent from the nRF connect for mobile to DK board. 1-mesh only mode, 2 - non-mesh only mode

Can you please link me any simple suitable pre developed GATT service to achieve this (sending a flag or value to the connect DK board from android mobile). Any additional support in this regard would be very helpful.

Thanks and Regards,
S Mohan

 

Related