Setting up the GATTClient/Central

Hello!

I have a custom service that I try to implement on two nrf52840 DK, where one is supposed to act as a GATTClient and one is going to be a GATTServer.

The service has 4 characteristics, two of which are "notify" and two are "write without response", all these characteristics works fine between my GATTServer and my nrfConnect app, meaning I can see correct data being sent in both directions.

However, when I now try and implement the GATTClient/Central device I have run into some problem, I found this tutorial the BLE central tutorial, but it is very outdated and isn't very helpful when using nrfConnect with VSCode. I have also gotten the advice to see the DevAcademy course on BLE which I have done and nowhere there in that course are you programming a central device what I can see?

So my questions are, are there some other tutorial about setting up a GATTClient that needs to subscribe to more than one server initiated operation while also needing to use two client initiated operations? 
I have tried going through the sample projects "central" and "central_hr" but those still just handle a service connection with one characteristic and most samples are not well commented and the README is lacking to say the least, so you don't know what all the code does as a beginner like myself.

So, is there something I'm missing and somewhere I can get help with trying to make my GATTClient? Because I have tried this for one week now and am about to give up.

Regards,

Björn

Parents Reply Children
No Data
Related