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

Nordik UART app with Multiple service reception

I need to receive both UART Service data and HRS service data on the app.

Currently I have seen on Nordik Connect app , both the services can be found and can connect and receive data.

I need to do same with my app using nordik UART App code.

I have changed UART profile to HRS profile and code was working, i was receiving Nordik HRS service data.

But i want both services should be used and receives data. so i have prepare separate UARTService_HRS for hrs profile in the same code.also added needed changed.but it gives error null pointer exception on BLEGattService.

Please help

Parents
  • Hi Shrikant,

    Please post your full code, whole project. If you don't want the code be confidential please send it via PM or open a support case in "My Page" on our website.

    You need to enable CCCD before you can receive any notification. This could be the reason why you don't receive any HRS characteristic in broadcastUpdate. BroadcastUpdate is called when there is a change in characteristic, and if you don't enable CCCD (the code I posted above) , there will be no change can be notify.

Reply
  • Hi Shrikant,

    Please post your full code, whole project. If you don't want the code be confidential please send it via PM or open a support case in "My Page" on our website.

    You need to enable CCCD before you can receive any notification. This could be the reason why you don't receive any HRS characteristic in broadcastUpdate. BroadcastUpdate is called when there is a change in characteristic, and if you don't enable CCCD (the code I posted above) , there will be no change can be notify.

Children
No Data
Related