Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The clients themselves are represented by the roBtClient object. 

ifBtClientManager

Start(params As roAssociativeArray) As Boolean

Starts BLE communication. This method accepts the following parameters:

  • client_timeout: The amount of time (in seconds) that a client can be inactive before being disconnected.
  • service_uuid: A UUID that identifies the service
  • client_uuid: The client-identifier attribute
  • user_variable_uuid: The attribute for updating user variables
  • command_uuid: The attribute for commands
  • device_info_uuid: The attribute for device information
  • device_data_uuid: The attribute for device data
Stop() As Boolean

Stops BLE communication.

SetDeviceInfo(a As Object) As Boolean
 
SetDeviceData(a As Object) As Boolean

ifMessagePort

SetPort(a As Object)

Posts messages of type roBtClientManagerEvent to the attached message port. An event is raised whenever the end of the queue is reached.

ifIdentity

GetIdentity() As Integer

Returns a unique number that can be used to identify roBtClientManagerEvent objects that originate from this object.

ifUserData

SetUserData(user_data As Object)

Sets the user data that will be returned when events are raised.

GetUserData() As Object

Returns the user data that has previously been set via SetUserData(). It will return Invalid if no data has been set.

ifFailureReason

GetFailureReason() As String

Returns additional useful information if a method on the ifBtClientManager interface returns False.

...