The instance of MODblue that this adapter was found by.
The MAC address of this adapter. All lowercase, with colon separator between bytes, e.g. 11:22:33:aa:bb:cc
The MAC address type of this adapter.
The public name of this adapter.
Get all peripherals that were found since the last scan start.
Returns true
if this adapter is currently advertising, false
otherwise.
Returns true
if this adapter is currently scanning, false
otherwise.
Scans for a specific Peripheral using the specified matching function and returns the peripheral once found. If the timeout is reached before finding a peripheral the returned promise will be rejected.
Either a string that is used as name prefix, or a function that returns true
if the specified peripheral is the peripheral we're looking for.
The timeout in seconds. The returned promise will reject once the timeout is reached.
The UUIDs of the GattServices that must be contained in the advertisement data.
Setup the GATT server for this adapter to communicate with connecting remote peripherals.
The maximum MTU that will be negotiated in case the remote peripheral starts an MTU negotation.
Start advertising on this adapter.
The device name that is included in the advertisement.
The UUIDs of the GattServices that are included in the advertisement.
Start scanning for nearby Peripherals.
The UUIDs of the GattService that an advertising
packet must advertise to emit a discover
event.
True if advertisements for the same peripheral should emit multiple discover
events.
Stop any ongoing advertisements.
Stop scanning for peripherals.
Generated using TypeDoc
The unique identifier of this adapter.