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

BLE advertise and connections using Mesh SDK 2.0.1

What is the best way to advertise a custom service and allow BLE connections from a mobile device in a Mesh SDK version 2.0.1 application. Previously I had an application that had the Mesh SDK (v1.0) and nRF SDK combined. The device used mesh to communicate with other devices but also advertised a BLE service for mobile phones to connect to (for RSSI monitoring). The GATT bearer additions to Mesh SDK 2.0.1 seems like it might affect this design. Please advise on the best way to do this in the new Mesh SDK. I would really like to run the ble_app_multiperipheral on a mesh node but a single peripheral service would also work.

Parents
  • FormerMember
    +1 FormerMember

    A good place to start is to have a look at the light_swithc proxy_client or proxy_server example: those examples shows how to do connectable advertising  and handle BLE events (mesh_gatt_on_ble_evt mesh_gatt.c).

    Connectable advertising: adv_start() in proxy.c

    Handle BLE events: mesh_gatt_on_ble_evt in mesh_gatt.c

Reply
  • FormerMember
    +1 FormerMember

    A good place to start is to have a look at the light_swithc proxy_client or proxy_server example: those examples shows how to do connectable advertising  and handle BLE events (mesh_gatt_on_ble_evt mesh_gatt.c).

    Connectable advertising: adv_start() in proxy.c

    Handle BLE events: mesh_gatt_on_ble_evt in mesh_gatt.c

Children
Related