yeelight-awesome
Version:
The node.js client api to control yeelight device over WIFI
20 lines (19 loc) • 816 B
TypeScript
import { IDevice } from "./models/device";
/**
* Parse the raw socket message to the device information
* @param {string} message raw HTTP message read from socket when discover the light
* @returns {IDevice} device info
*/
export declare function parseDeviceInfo(message: string): IDevice;
/**
* This function to convert the hex string to the decimal number. Ex AA=> 255
* @param {string} hex the input as heximal string ex: 12AF32CD
* @returns {number} the number value of hex string
*/
export declare function hexToNumber(hex: string): number;
export declare function getListIpAddress(currentIp: string, from?: number, to?: number): string[];
export declare const Utils: {
getListIpAddress: typeof getListIpAddress;
hexToNumber: typeof hexToNumber;
parseDeviceInfo: typeof parseDeviceInfo;
};