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

how to receive multiple services data from NRF thingy52 to a nrf52840 central device ?

hi,

i doing a program to receive multiple service data from nrf thingy 52 to nrf52840 central device.

as of now i have implemented weather service, motion service and battery service, but i am only able to receive data of service which is initialized first, to verify received data i am using uart terminal, but in database discovery handler i am able to scan for services and able to initialize handlers for the all 3 services. but in event handler i am receiving data for first initialized service only. even client characteristic configuration descriptor (notification enable) is enabled for all characteristics.

pleasae help me out.

Nikunj Rana

  • Hi Nikunj,

    This is the 3rd questions you asked about the same thing. This is not a recommended way of doing stuff on this forum. If you have new information, you need to update the previous case, you can decide to close the case and open a new one if there is something changed, but you need to explain it.

    In earlier question, you already mentioned you received "temperature, pressure, humidity, CO2 level successfully", I'm not sure why now it's changed.

    To be able to create a working program, you need to understand how it works so you can debug it. In your case, you need to check if the service discovery works properly. If you have the handler of each of the service and characteristic correctly. Then you check if CCCD actually written to each of the service and the notification are sent from each of the service.

Related