TinyCircuits Forum

General Category => General Discussion => Topic started by: Tacca on July 11, 2021, 08:41:44 PM

Title: Is there any code example with BLE and 9DOF (Wirelings or Shield)?
Post by: Tacca on July 11, 2021, 08:41:44 PM
Hello,

I am using the UARTPassThrough example as basis to send 9DOF wirelings data with BLE.
However, since I have 2 sensors, I am starting to wonder if there is a better way to do this.

I am calling this twice per sample (each sample is a reading from 2 wirelings sensors), with some delay between them:

Code: [Select]
    if (!lib_aci_send_data(PIPE_UART_OVER_BTLE_UART_TX_TX, (uint8_t*)sendBuffer, sendLength))
    {
      SerialMonitorInterface.println(F("TX dropped!"));
    }

I am trying to wrap my head around the specifics of this command, so I am looking something to go guide me deep in the GATT configurations, characteristics, attributes, etc.

Is there any project or code example with that in mind?

I am using a stack of:
- TinyZero
- STBLE
- WirelingAdapter[9DOFWireling;9DOFWireling]

Thank you all in advance.
Title: Re: Is there any code example with BLE and 9DOF (Wirelings or Shield)?
Post by: Jason on July 15, 2021, 02:22:23 PM
This seems related to your other post. Do my replies there help? http://forum.tinycircuits.com/index.php?topic=2192.msg4957#msg4957 (http://forum.tinycircuits.com/index.php?topic=2192.msg4957#msg4957)