@hangtime/grip-connect-react-native
Version:
React Native module for Grip Connect devices
19 lines • 968 B
TypeScript
import { BleManager, Device } from "react-native-ble-plx";
import { Progressor as ProgressorBase } from "@hangtime/grip-connect";
import type { WriteCallback } from "@hangtime/grip-connect/src/interfaces/callback.interface.js";
/**
* Represents a Tindeq Progressor device.
* {@link https://tindeq.com}
*/
export declare class Progressor extends ProgressorBase {
manager: BleManager;
device?: Device;
constructor();
connect: (onSuccess?: () => void, onError?: (error: Error) => void) => Promise<void>;
disconnect: () => Promise<void>;
download: () => 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=progressor.model.d.ts.map