@constructorfleet/ultimate-govee
Version:
Library for interacting with Govee devices written in Typescript.
13 lines • 1.13 kB
TypeScript
import { Comparator, DecodeDevice, DecoderArgs, Operations, Conditions } from './types';
import { GoveeDeviceStatus } from '../../../govee-device';
import { DeviceProperty } from '../decoder.types';
export declare const evaluateComparison: (operator: Comparator, operand: number, operant: number) => boolean;
export declare const postProcessing: (value: number, operations: Operations, calibration?: number) => number | undefined;
export declare const Decoder: {
value_from_hex_string: (hexData: string, offset: number, length: number, reverse?: boolean, canBeNegative?: boolean, isFloat?: boolean) => number;
bf_value_from_hex_string: (hexData: string, offset: number, length: number, reverse?: boolean, canBeNegative?: boolean, isFloat?: boolean) => number;
matches(device: DecodeDevice, conditions: Conditions): boolean;
decodeProperties(device: DecodeDevice, properties: Record<string, DeviceProperty>): GoveeDeviceStatus['state'];
decode(device: DecodeDevice, decoderArgs: DecoderArgs, postProcessingOperations?: Operations, calibation?: number): number | undefined;
};
//# sourceMappingURL=decoder.d.ts.map