UNPKG

energy-manager-iot

Version:

Library for energy management in IoT devices via MQTT protocol. Documentation: https://jonhvmp.github.io/energy-manager-iot-docs/

24 lines (23 loc) 829 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommandType = void 0; /** * Command types that can be sent to IoT devices * * Defines the standard operations that can be performed on devices. */ var CommandType; (function (CommandType) { /** Put device into power saving mode */ CommandType["SLEEP"] = "sleep"; /** Exit power saving mode */ CommandType["WAKE"] = "wake"; /** Restart the device */ CommandType["RESTART"] = "restart"; /** Request firmware update */ CommandType["UPDATE"] = "update"; /** Configure status reporting interval */ CommandType["SET_REPORTING"] = "set_reporting_interval"; /** Request immediate status update */ CommandType["GET_STATUS"] = "get_status"; })(CommandType || (exports.CommandType = CommandType = {}));