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
  • Hello,

    I faced the same problem. I am unable to get both services at a time. I have tried to get first only HRS data and it is working. Then I also tried to get UART data individually ,it is also working. But when I use both services at a time,only UART data is received. When I debug the app both services are found. But when I debug the broadcastUpdate function only one if condition get executed either UART or HRS. So, please let me know how to solve this? Thanks in advance.

Reply
  • Hello,

    I faced the same problem. I am unable to get both services at a time. I have tried to get first only HRS data and it is working. Then I also tried to get UART data individually ,it is also working. But when I use both services at a time,only UART data is received. When I debug the app both services are found. But when I debug the broadcastUpdate function only one if condition get executed either UART or HRS. So, please let me know how to solve this? Thanks in advance.

Children
No Data
Related