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

Gatt or gap?

Hi ,

i read tha the default profile for BLE is GATT but in the BLE_templete GAP is used. How can i interpret this? Which Profile i have to use when i wannt support for IOS and android ?

Best regards Nils :)

Parents
  • Hi Nils,

    There are two mandatory services for Bluetooth Low Energy, one is GAP (Device Name, Appearance and optionally Peripheral Preferred Connection Parameters) and another one is GATT (Service Changed).

    This is the reason why the BLE template uses the gap_params_init, to set up the device name and appearance characteristic + the ppcp.

    You don't have to do it to make your profile work, but the device name that is stored by default in the chip is nRF51822 if I recall it correctly.

    You can add services and profiles as you like, and it should still work with iOS and Android, depending on what your application on those devices is looking for.

Reply
  • Hi Nils,

    There are two mandatory services for Bluetooth Low Energy, one is GAP (Device Name, Appearance and optionally Peripheral Preferred Connection Parameters) and another one is GATT (Service Changed).

    This is the reason why the BLE template uses the gap_params_init, to set up the device name and appearance characteristic + the ppcp.

    You don't have to do it to make your profile work, but the device name that is stored by default in the chip is nRF51822 if I recall it correctly.

    You can add services and profiles as you like, and it should still work with iOS and Android, depending on what your application on those devices is looking for.

Children
No Data
Related