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

nRF52 - TWI and BLE

Hello,

I would like to collect sensor data over TWI and transmit to a smartphone using BLE. I am wondering what the best way to do this would be. I am using SDK 12.2.

So far, I have one sensor working using TWI. My goal is to get all sensors working first, and then work on the BLE part. My problem is that there aren't any examples that use TWI and BLE together in the SDK. Does anyone have any suggestions or examples or tips for me?

Thank you!

Parents
  • There is no magic to this.

    Your TWI code should work when integrated with BLE

    I'd recommend you start by copying the ble application template, then look at adding a custom service (or one of the example services, to the template, and finally intergate your TWI code when you need to read the sensors

    Precisely what services you use and whether you collect data from your sensors before or during the BLE connection is specific to your use case.

Reply
  • There is no magic to this.

    Your TWI code should work when integrated with BLE

    I'd recommend you start by copying the ble application template, then look at adding a custom service (or one of the example services, to the template, and finally intergate your TWI code when you need to read the sensors

    Precisely what services you use and whether you collect data from your sensors before or during the BLE connection is specific to your use case.

Children
Related