Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

How can I use ANT_LibConfig function?

Rank

Total Posts: 2

Joined 2012-01-10

PM

I want to use RSSI value in my project but I can't find "ANT_LibConfig" function on library ("ANT Windows Library Package with source code" ).

How can I use ANT_LibConfig function?      
Avatar
RankRankRankRank

Total Posts: 745

Joined 2012-09-14

PM

If you find yourself running into a feature not enabled in the library you can always send it as a raw message to ANT using the ANT_Device.writeRawMessageToDevice(byte msgID, byte[] msgData) command.

For enabling only RSSI:

byte[] msgData = new byte[2] {0x00, 0x40};

writeRawMessageToDevice(0x6E, msgData);

Cheers      
Rank

Total Posts: 2

Joined 2012-01-10

PM

Thanks for your reply, but where is "ANT_Device" class?

I can't find it :cheer:      
Avatar
RankRankRankRank

Total Posts: 745

Joined 2012-09-14

PM

Are you using C++ or C#?

If your using C# DEMO_NET provides good example code.

If your using C++ then DEMO_LIB and DEMO_DLL provide example code for using the main ANT library source code.