@hangtime/grip-connect-capacitor
Version:
Capacitor plugin for Grip Connect devices
17 lines • 980 B
TypeScript
import { type BleDevice } from "@capacitor-community/bluetooth-le";
import { Motherboard as MotherboardBase } from "@hangtime/grip-connect";
import type { WriteCallback } from "@hangtime/grip-connect/src/interfaces/callback.interface.js";
/**
* Represents a Griptonite Motherboard device.
* {@link https://griptonite.io}
*/
export declare class Motherboard extends MotherboardBase {
device?: BleDevice;
connect: (onSuccess?: () => void, onError?: (error: Error) => void) => Promise<void>;
disconnect: () => Promise<void>;
download: (format?: "csv" | "json" | "xml") => Promise<void>;
onConnected: (onSuccess: () => void) => Promise<void>;
read: (serviceId: string, characteristicId: string, duration?: number) => Promise<string | undefined>;
write: (serviceId: string, characteristicId: string, message: string | Uint8Array | undefined, duration?: number, callback?: WriteCallback) => Promise<void>;
}
//# sourceMappingURL=motherboard.model.d.ts.map