Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Understanding Sample_AcquireChannels

Rank

Total Posts: 2

Joined 2013-09-16

PM

In the demo code, Sample_AcquireChannels, you have the ability to either transmit as a master or receive as a slave by toggling the Tx/Rx button.

How would I use the app as a bidirectional slave, and have it respond, (transmit), back to a found master?

In the OnReceiveMessage, parsing the payload from BROADCAST_DATA message type shows the received message from the master.

What method do I need to call to initiate a responding transmit back to the master?

Is it BroadcastDataMessageFromHost?

Thanks.      
Avatar
RankRankRankRank

Total Posts: 745

Joined 2012-09-14

PM

Hi Ken,

You can call the same methods as when the channel is assigned as a slave.

setBroadcastData(byte[] payload)
startSendAcknowledgedData(byte[] payload)
burstTransfer(byte[] data)

Cheers