@hangtime/grip-connect
Version:
Griptonite Motherboard, Tindeq Progressor, PitchSix Force Board, WHC-06, Entralpi, Climbro, mySmartBoard: Bluetooth API Force-Sensing strength analysis for climbers
67 lines • 2.48 kB
TypeScript
import { Device } from "../device.model.js";
import type { IClimbro } from "../../interfaces/device/climbro.interface.js";
/**
* Represents a Climbro device.
* {@link https://climbro.com/}
*/
export declare class Climbro extends Device implements IClimbro {
/**
* Battery constants
*/
private static readonly minBatteryDisc;
private static readonly maxBatteryDisc;
private static readonly batRangeDisc;
private static readonly batLevelCoef;
/**
* Synchronization flag used to track the current data type being processed.
* Set to BAT_DAT when processing battery data, SENS_DAT when processing sensor data.
* @type {number}
* @private
*/
private flagSynchro;
/**
* Current battery level percentage calculated from the device's battery voltage.
* @type {number}
* @private
*/
private batteryLevel;
constructor();
/**
* Retrieves battery level from the device.
* @returns {Promise<string | undefined>} A Promise that resolves with the battery level.
*/
battery: () => Promise<string | undefined>;
/**
* Retrieves hardware version from the device.
* @returns {Promise<string | undefined>} A Promise that resolves with the hardware version.
*/
hardware: () => Promise<string | undefined>;
/**
* Retrieves manufacturer information from the device.
* @returns {Promise<string | undefined>} A Promise that resolves with the manufacturer information.
*/
manufacturer: () => Promise<string | undefined>;
/**
* Retrieves model number from the device.
* @returns {Promise<string | undefined>} A Promise that resolves with the model number.
*/
model: () => Promise<string | undefined>;
/**
* Retrieves software version from the device.
* @returns {Promise<string | undefined>} A Promise that resolves with the software version.
*/
software: () => Promise<string | undefined>;
/**
* Retrieves system id from the device.
* @returns {Promise<string | undefined>} A Promise that resolves with the system id.
*/
system: () => Promise<string | undefined>;
/**
* Handles data received from the device, processes force measurements and battery data
* according to the Climbro protocol.
*
* @param {DataView} value - The notification event.
*/
handleNotifications: (value: DataView) => void;
}
//# sourceMappingURL=climbro.model.d.ts.map