@jstark/tplink-smarthome-api
    Preparing search index...

    Interface ClientEvents

    interface ClientEvents {
        "bulb-new": (device: Bulb) => void;
        "bulb-offline": (device: Bulb) => void;
        "bulb-online": (device: Bulb) => void;
        "device-new": (device: Bulb | Plug) => void;
        "device-offline": (device: Bulb | Plug) => void;
        "device-online": (device: Bulb | Plug) => void;
        "discovery-invalid": (
            __namedParameters: {
                decryptedResponse: Buffer;
                response: Buffer;
                rinfo: RemoteInfo;
            },
        ) => void;
        error: (error: Error) => void;
        "plug-new": (device: Plug) => void;
        "plug-offline": (device: Plug) => void;
        "plug-online": (device: Plug) => void;
    }
    Index
    "bulb-new": (device: Bulb) => void

    First response from Bulb.

    "bulb-offline": (device: Bulb) => void

    No response from Bulb.

    "bulb-online": (device: Bulb) => void

    Follow up response from Bulb.

    "device-new": (device: Bulb | Plug) => void

    First response from device.

    "device-offline": (device: Bulb | Plug) => void

    No response from device.

    "device-online": (device: Bulb | Plug) => void

    Follow up response from device.

    "discovery-invalid": (
        __namedParameters: {
            decryptedResponse: Buffer;
            response: Buffer;
            rinfo: RemoteInfo;
        },
    ) => void

    Invalid/Unknown response from device.

    error: (error: Error) => void

    Error during discovery.

    "plug-new": (device: Plug) => void

    First response from Plug.

    "plug-offline": (device: Plug) => void

    No response from Plug.

    "plug-online": (device: Plug) => void

    Follow up response from Plug.