Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Fit DeviceInfo Message: descriptor can only safe on character

Rank

Total Posts: 4

Joined 2017-04-25

PM

Hello,

when I write a deviceInfo message using the java EncodeExample I can save Strings in the descriptor property of the deviceInfo message.
However if I try doing the same with my self compiled c FIT SDK (where I added some custom messages) I can only write one character into the DeviceInfo message.

Does anyone know if I can redefine the length of the descriptor in the c source code so that I can also save longer Strings in there?

Thanks for your help.      
RankRankRank

Total Posts: 68

Joined 0

PM

You need to set the max length of the string that you want to support in the config.csv file.

When enabling a field you usually set the value to 1, but for strings/arrays you need to set the value to the size of the array that you are using.

So in config.csv:
,descriptor,,"1" 
should be:
,descriptor,,"10" 
If you want to support a 10 character descriptor.