UNPKG

@tanislav000/bluez

Version:

Bluez5 D-Bus bindings for easy to use bluetooth access in Node.js

29 lines (28 loc) 1.01 kB
/// <reference types="node" /> import * as DBus from "dbus-next"; import { EventEmitter } from "events"; /** * Service: org.bluez * ObjectPath: /org/bluez/hci0/* * Interface: org.bluez.Network1 */ export declare class OrgBluezNetwork1 extends EventEmitter { readonly dbusInterfaceName = "org.bluez.Network1"; dbusObject: DBus.ProxyObject; propertiesDBusInterface: DBus.ClientInterface; thisDBusInterface: DBus.ClientInterface; static Connect(bus: DBus.MessageBus, objectPath: string, xml?: string): Promise<OrgBluezNetwork1>; constructor(dbusObject: DBus.ProxyObject); /***** Properties *****/ getProperties(): Promise<{ [name: string]: any; }>; getProperty<T = any>(name: string): Promise<T>; setProperty<T = any>(name: string, value: T): Promise<void>; Connected(): Promise<boolean>; Interface(): Promise<string>; UUID(): Promise<string>; /***** Methods *****/ Connect(uuid: string): Promise<string>; Disconnect(): Promise<void>; }