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

automatic connect to the Gatt Server

Hello,

what are necessary that a Device automatically (without a 3rd party app) connect to the GATT Server with a HID Service.

I have implement a

HID Service,

Device Description Service and a Battery Service

 I also make bonding with the device but I get no reconnection after start the Advertising.

Thanks,

fiedy 

  • Hi,

    I assume that the issue you are seeing is that you never get any connection requests from the central that you have previously bonded with.

    The connection process is entirely controlled from the central side. All you can do as a peripheral is to advertise, and hope that the central will connect. That is how it works from the Bluetooth specification. In other words: This is mostly a question about settings on the central, and the answer will vary depending on which central we are talking about.

    From your peripheral point of view, you should advertise. You can choose to do directed advertising at first, in order to directly target the central of your choice.

    If, on the other hand, you do get a connection request but something fails during connection setup etc., then you should look into those issues in order to fix them.

    Regards,
    Terje

Related