bluetooth.startAdvertising()


Type Function Return value Userdata

See also bluetooth.*


Overview

Returns a Userdata representing an advertising id.

Syntax

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

mode optional

String. "low latency", "low power", "balanced" (default).

isConnectable optional

Boolean. default is false.

timeout optional

Number. integer.

txPowerLevel optional

Number. integer.

broadcast optional

AdvertiseData.

response optional

AdvertiseData.

listener optional

Listener.