Sensors

[TCP/WebSocket -> InvisOutlet]

Fetch InvisDeco's latest sensor readings.

Request

  • packetID: Represents the ID of the packet. This can be any six digit number, no leading zeros.

  • payload:

    • callbackName: 11

{
    "packetID": 371939,
    "payload":
    {
        "callbackName": 11
    }
}

Response

  • sn: The serial number of the InvisOutlet.

  • packetID: Represents the ID of the packet based on request packetID.

  • PUBACK : If the request is successfully processed; 1 - Successful, 0 - Fail.

  • payload:

    • callbackName : 11

    • callbackArgs :

      • 1 : The InvisDeco device type; reserved for internal use.

      • 2 :

        • lux_valid: A flag indicating the ambient brightness sensor validity of the sensor; 1 - valid, 0 - invalid.

        • lux: Ambient brightness level in LUX.

Last updated