@tanislav000/bluez
Version:
Bluez5 D-Bus bindings for easy to use bluetooth access in Node.js
28 lines (27 loc) • 1.21 kB
TypeScript
import * as DBus from "dbus-next";
import { LooselyTypedEmitter, EventListenerSignature } from "../utilts";
/***** Signals for org.freedesktop.DBus.Properties *****/
interface OrgFreedesktopDBusPropertiesEvents {
PropertiesChanged: (interface_: string, changed_properties: {
[key: string]: any;
}, invalidated_properties: Array<string>) => void;
}
/**
* Service: org.bluez
* ObjectPath: /org/bluez/hci0/-
* Interface: org.freedesktop.DBus.Properties
*/
export declare class OrgFreedesktopDBusProperties<L extends EventListenerSignature<L> = Record<string, never>> extends LooselyTypedEmitter<OrgFreedesktopDBusPropertiesEvents & L> {
static readonly DbusInterfaceName = "org.freedesktop.DBus.Properties";
dbusObject: DBus.ProxyObject;
thisDBusInterface: DBus.ClientInterface;
static Connect(bus: DBus.MessageBus, objectPath: string, xml?: string): Promise<OrgFreedesktopDBusProperties>;
constructor(dbusObject: DBus.ProxyObject);
/***** Methods *****/
Get(interface_: string, name: string): Promise<any>;
Set(interface_: string, name: string, value: any): Promise<void>;
GetAll(interface_: string): Promise<{
[key: string]: any;
}>;
}
export {};