TrillBit SDK
  • Introduction
  • technological overview
    • In this release
    • Use cases
    • Quick links
  • features
    • Payloads and Datarates
    • Protocols
    • Configurations
    • Distances
    • Platforms supported
  • demo applications
    • TrillPlay
      • Specifications
    • TrillIoT
    • Knowles SmartMic
  • Knowles smartmic support
    • Trill SDK for Knowles
      • Requirements
      • Setup Guide
        • Licensing and Setting up Trillbit Host library
        • Authentication of the Trillbit IA61x algorithm
        • Sending Data to the SmartMic
      • Trillbit SDK Methods
      • Troubleshooting
  • android support
    • Trill SDK for Android
      • SDK Requirements
      • Setup Guide
        • Licensing credentials
        • Getting started
        • Integrating the SDK
          • Declare your app's audio permissions
          • Import SDK
          • Declare Trill SDK Callback
          • License and Initialise your Trill SDK
      • Methods and Callbacks
        • Sender methods
        • Receiver methods
        • Callbacks
      • Reducing application size
      • Troubleshooting
        • Error codes
  • ios support
    • Trill SDK for iOS
      • SDK Requirements
      • Setup Guide
        • Licensing Trill SDK
        • Getting started
      • Methods and Callbacks
        • Trill SDK Methods
        • Trill SDK Callbacks and delegates
      • Troubleshooting
  • esp 32 support
    • Trill SDK for ESP-32
      • Requirements
      • Platforms supported
      • Setup Guide
        • Licensing and Setting up Trillbit library
        • Sending data to the ESP32 device
      • Methods and Callbacks
      • Troubleshooting
  • embedded linux
    • Trill SDK for Embedded linux
      • Requirements
      • Architectures supported
      • Demo applications
      • Setup Guide
        • Licensing your Trill SDK
        • Compiling example binaries
        • Instantiate Trill SDK
        • Run the demo code
      • Methods and Callbacks
        • Trill SDK Methods
        • Callbacks
      • Troubleshooting
  • Reference
    • References
    • FAQs
Powered by GitBook
On this page
  1. ios support
  2. Trill SDK for iOS
  3. Methods and Callbacks

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:

// Start sending data with playing algo as Algo Far, repeat count as 3 and gaps between two play as 0.2
seconds
trill?.start_sender(“abcdef”, TRILL_ALGO_FAR, 3, 0.2);
// Stop Sending Data
trill?.stop_sender();.

Sample Code for Receiving data:

// Start receiving data
trill?.start_receiver();
// Send SSID and Password with algo OFSR and repeat counter 50
trill?.stop_receiver();

PreviousMethods and CallbacksNextTrill SDK Callbacks and delegates

Last updated 2 years ago