object:connect()


Type Function Return value Gatt

See also bluetooth.*


Overview

Syntax

object:connect( params )

params required

Table. Contains parameters for the call — see the next section for details.

Parameter Reference

The params table includes parameters for the call.

autoConnect optional

Boolean. default is false.

onCharacteristicChanged optional

Listener.

onCharacteristicRead optional

Listener.

onCharacteristicWrite optional

Listener.

onConnectionStateChange optional

Listener.

onDescriptorRead optional

Listener.

onDescriptorWrite optional

Listener.

onReadRemoteRssi optional

Listener.

onReliableWriteCompleted optional

Listener.

onServicesDiscovered optional

Listener.