The returned object in several callback functions.

interface Peripheral {
    RSSI?: number;
    UUID: string;
    advertismentData?: AdvertismentData;
    localName?: string;
    manufacturerId?: number;
    mtu?: number;
    name: string;
    services?: Service[];
}

Properties

RSSI?: number

The relative signal strength which more or less can be used to determine how far away the peripheral is.

UUID: string

The UUID of the peripheral.

advertismentData?: AdvertismentData
localName?: string

A friendly description of the peripheral as provided by the manufacturer.

manufacturerId?: number
mtu?: number
name: string

A friendly description of the peripheral as provided by the manufacturer.

services?: Service[]

Once connected to the peripheral and if autoDiscoverAll is not false, a list of services will be set.

Generated using TypeDoc