Trill SDK Methods
(bool) start_sender: (NSString*) payload: (int) algo: (int) repeat_count: (float) gap;Start the sending process on the application. The method returns true if sending is started successfully. In case of error check callback onError
payload: String to send
algo: Algorithm for sending payload ( Algorithm could be TRILL_ALGO_NEAR,
TRILL_ALGO_MID, TRILL_ALGO_FAR
repeat_count: no of times the payload is to be sent.
repeat_gap: Gap between two plays in seconds ( range between 0.2 - 1 ).
(bool) stop_sender;Stop the sending process on the application. The method returns true if
sending is successfully stopped. In case of error check callback onError
(bool) start_receiver;Start receiving trill tones on the application. The method returns true if the
receiver is successfully started. In case of error check callback onError
(bool) stop_receiver;Stop receiving trill tones. The method returns true if the receiver is
successfully stopped. In case of error check callback onError
Sample Code for Sending data:
Sample Code for Receiving data:
Last updated