Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Set Network Key with ANT Android SDK

Rank

Total Posts: 2

Joined 2016-03-18

PM

I'm very lost. In the Android ANT SDK, I can't figure out how to set the Network key. Does anyone know if it can be set? And if it can't, what is the preset network key?      
RankRankRankRank

Total Posts: 313

Joined 2011-09-12

PM

Please refer to the ANT Message Protocol document to better understand network keys: https://www.thisisant.com/resources/ant-message-protocol-and-usage/ The d.efault key is the public key of all 0's.

When using the Android AntLib, you select other networks when you acquire the channel using the acquire channel functions: https://www.thisisant.com/APIassets/Android_ANT_API/com/dsi/ant/channel/AntChannelProvider.html      

Signature

Dynastream Developer

Rank

Total Posts: 2

Joined 2016-03-18

PM

Thanks, I've since improved my understanding of network keys. What I'm trying to figure out now is if its possible to set a 64-bit private network key on Android. Also what exactly is the class SetNetworkKeyMessage used for?      
RankRankRankRank

Total Posts: 313

Joined 2011-09-12

PM

That class is only used internally.      

Signature

Dynastream Developer