How to customize a FIT file ?

Hello everyone,

I would like to completely customize the output FIT file of my custom activity.

Does anyone have sample code on how to do this? I'm having trouble understanding the createField() documentation : for example I would only like heart rate and stress level in it.

Thanks in advance