Add custom data to Activity:info

Hi, I'm developing a data field to send garmin data to an external BLE device. The data is captured in the Activity::info object in the compute() call. Now I would like to add a custom data in addition to the standard garmin data to the BLE device and the easiest approach would be to just add the custom data as a new member of the Activity::info class. However, I have no idea how to do that and if it's even possible. Ideally just adding a new data member to the info struct, something like: 

info.add("myCustomData", value) 

Is that possible, in any way? 

TIA

//Fredrik

  • That is not possible, but you cloud use BLE tot send receive whatever you want see the SDK example NordicThingy52. You could make your own UÙID's to watch

  • Or you could just use Fit Contrib, write you custom data to the fit file. and after it syncs. view the data in Garmin Connect or use the fit SDK to get the data out of the fit file.

    With BLE, the other end needs to advertise and in CIQ the app needs to do the scanning/pairing.  You might also run into issues with the size of the data you are attempting to send, how often it's being sent, etc.  For example, with CIQ BLE, you can only receive about 20 bytes at a time.

  • I know from experience that 40ms of update time is not a problem. With 8 hex (ff,ff,ff,ff) info. I'm currently using that. 

  • Thank you for the responses. I guess my proposed "solution" is not a viable approach...