Sender Methods
Using the below declared configuration, the TrillSDK would send “abcdef” for 10 times. The Sender will automatically stop when played for 10 times.
SendingConfiguration sendingConfiguration = new SendingConfiguration();
sendingConfiguration.payload = "abcdef";
sendingConfiguration.repeat_count = 10;
trillSDK.start_sending(sendingConfiguration);
Use the start_sending method to start sending data from the sender, with the configuration set previously, as shown above.
trillSDK.start_sending(sendingConfiguration);
To instruct the SDK to stop sending data , use stop_sending method:
trillSDK.stop_sending();
Last updated