UNPKG

homebridge-plugin-wrapper

Version:

Wrapper for Homebridge and NodeJS-HAP with reduced dependencies that allows to intercept plugin values and also send to them

20 lines 1.29 kB
import { CharacteristicValue, Nullable } from "../../types"; import { CharacteristicProps, Formats } from "../Characteristic"; /** * Prepares the characteristic value to be sent to the HomeKit controller. * This includes changing booleans to 0 or 1 (for lower bandwidth) and converting * numbers to the desired minStep (by converting them to a string). * The minStep conversion only happens for minStep < 1 * * @param value - The value which should be formatted * @param props - The characteristic properties used to format the value. * @private */ export declare function formatOutgoingCharacteristicValue(value: Nullable<CharacteristicValue>, props: CharacteristicProps): Nullable<CharacteristicValue>; export declare function formatOutgoingCharacteristicValue(value: CharacteristicValue, props: CharacteristicProps): CharacteristicValue; export declare function isNumericFormat(format: Formats | string): boolean; export declare function isUnsignedNumericFormat(format: Formats | string): boolean; export declare function isIntegerNumericFormat(format: Formats | string): boolean; export declare function numericLowerBound(format: Formats | string): number; export declare function numericUpperBound(format: Formats | string): number; //# sourceMappingURL=request-util.d.ts.map