Tool/software: Code Composer Studio
I am trying to use CC2650 sensor tags on a movable entity to collect the accelerometer data for the entity.
I have placed multiple raspberry Pis in the entire perimeter where the entities move, which will collect the accelerometer data and forward it to the back-end.
There are multiple entities each carrying a CC2650 within it in the perimeter.
I want to send the accelerometer data as a payload in the BLE broadcast which can be received by the Raspberry Pi.
I have started working on simple_peripheral.c example code for the same.
Can you please help me with below queries:
1. How to collect the accelerometer data ( I assume it is collected in sensortag_mov.c) in the simple_peripheral.c example file?
2. How to change the payload data that I need to send in the simple_peripheral.c?
3. How to regulate the broadcast interval? I want to broadcast if I have enough data (size crosses a threshold) or timeout.