bluetooth.newServer()


Type Function Return value Server

See also bluetooth.*


Overview

Syntax

bluetooth.newServer( 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.

onCharacteristicReadRequest optional

Listener.

onCharacteristicWriteRequest optional

Listener.

onConnectionStateChange optional

Listener.

onDescriptorReadRequest optional

Listener.

onDescriptorWriteRequest optional

Listener.

onExecuteWrite optional

Listener.

onMtuChanged optional

Listener.

onNotificationSent optional

Listener.

onServiceAdded optional

Listener.