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
  • I would suggest you to try to read and write to the characteristic first. 609367b is not garbage data, it's an address in the memory, what do you expect to see? You won't see the UUID because to get the UUID you should call characteristic.getUuid() you should try to print that in the log.

    broadcastUpdate() is called when you get a notification, if you don't send a notification on HRS side (or if you don't enable notification for HRS) there will be no notification for the HRS characteristic.

    I suggest you to get familiar with HRS profile, know how to get characteristic, enable notification (write to CCCD), receive notification before you try to combine it with UART.

Reply
  • I would suggest you to try to read and write to the characteristic first. 609367b is not garbage data, it's an address in the memory, what do you expect to see? You won't see the UUID because to get the UUID you should call characteristic.getUuid() you should try to print that in the log.

    broadcastUpdate() is called when you get a notification, if you don't send a notification on HRS side (or if you don't enable notification for HRS) there will be no notification for the HRS characteristic.

    I suggest you to get familiar with HRS profile, know how to get characteristic, enable notification (write to CCCD), receive notification before you try to combine it with UART.

Children
No Data
Related