AFTER SUBSCRIBE AN INDICATE SEVICES THE DATA POINTER IS NULL

There is a BLE server that has a service is indicate and write. I am developing a BLE client. This client subscribes that service and writes 5 byte data. After the writing proccess done, service indicates 5 bytes responce. But after that immediatly idnicates 0 Length data. That means my device unsubscribed the service. After that client disconnect from server and the reason is timeout (0x08). When i try the same proccess on NRF CONNECT MOBILE everything is fine. What is the difference ?  

Parents Reply Children
  • I don't know. Did you ever connect via that same mobile phone before using the 3rd party app? Perhaps that does something special, and then the peripheral has bonded with the phone, so it is in a whitelist. Does it work if you try another phone that has never been connected to that device?

    Does the phone ask you to pair or bond (the first time you connect with it)?

    What if you enter your phone's settings -> Bluetooth, and then "forget/remove device"? Is it listed at all? Can you still connect to it with nRF Connect for mobile without pairing/bonding?

    This is just speculations from the top of my head of ways they could want you to only use their app to connect to the device. If you want a certain answer, you need to reach out to the developers of the product, and ask them what their requirements are.

    BR,

    Edvin

Related