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

How to write custom Central code?

Hello Community,

I have a peripheral device which is transmitting the data through custom battery, accelerometer and temperature services.

Now I need to receive that data on the central side.

Can you please provide any starting point for writing such custom central code

BR, Hrushi

  • Hi Hrushi!

    Take a look at our;
    Heart Rate Collector Example

    The Heart Rate Collector application implements the Collector role for the Heart Rate Profile. It scans peripheral devices, connects to the device advertising with Heart Rate Service UUID in its advertisement report, and discovers and configures the Heart Rate Service to start sending Notifications of Heart Rate Measurement.This application will also discover and configure Battery Service at the peer.

    Heart Rate Application

    The Heart Rate Application is an example that implements the Heart Rate profile using the hardware delivered in the nRF5 Development Kit. The application includes the three services in the Heart Rate profile:

    • Heart Rate Service
    • Battery Service
    • Device Information Service

    This should be a good starting point for writing the code for your central device.

    Best regards,
    Joakim.

Related