Switchbot_PlugMini management class Switchbot_PlugMiniを管理するクラス

Hierarchy

Constructors

Properties

_peripheral: BleRemotePeripheral

Internally Used function for connection required devices

ondisconnect?: ((reason) => void)

Type declaration

    • (reason): void
    • Parameters

      • reason: any

      Returns void

parser: BinaryAnalyzer<{
    manufacture: {
        byte12_13: {
            overload: boolean;
            power: number;
        };
    } & {
        wifiRssi: number;
    } & {
        byte10: {
            alreadySyncTime: boolean;
            hasDelay: boolean;
            hasTimer: boolean;
        };
    } & {
        powerState: null | "off" | "on";
    } & {
        sequenceNumber: number;
    } & {
        macAddress: number[];
    } & {
        companyId: number[];
    } & {
        type: number[];
    } & {
        length: number[];
    };
} & {
    flag: number[];
}> = ...

Methods

  • Parameters

    Returns null | {
        manufacture: {
            byte12_13: {
                overload: boolean;
                power: number;
            };
        } & {
            wifiRssi: number;
        } & {
            byte10: {
                alreadySyncTime: boolean;
                hasDelay: boolean;
                hasTimer: boolean;
            };
        } & {
            powerState: null | "off" | "on";
        } & {
            sequenceNumber: number;
        } & {
            macAddress: number[];
        } & {
            companyId: number[];
        } & {
            type: number[];
        } & {
            length: number[];
        };
    } & {
        flag: number[];
    }

  • Verify that the received peripheral is from the Switchbot_PlugMini

    受け取ったPeripheralがSwitchbot_PlugMiniのものかどうかを確認する

    Parameters

    • peripheral: BleRemotePeripheral

      instance of BleRemotePeripheral BleRemotePeripheralのインスタンス

    Returns boolean

    Whether it is the Switchbot_PlugMini

    Switchbot_PlugMiniかどうか

Generated using TypeDoc