zigbee-herdsman-zigate
Version:
An open source ZigBee gateway solution with node.js.
40 lines • 1.34 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Responses = exports.Requests = void 0;
const constants_1 = require("./constants");
const parameterType_1 = __importDefault(require("../../z-stack/znp/parameterType"));
/**
* @see https://zigate.fr/wiki/commandes-zigate/
*/
exports.Requests = {
[constants_1.ZGCommandCode.GetNetworkState]: {
name: 'GetDeviceList',
ID: constants_1.ZGCommandCode.GetNetworkState,
request: [
{ name: 'type', parameterType: parameterType_1.default.UINT8 },
],
response: [
constants_1.ZGMessageCode.Status
]
},
};
exports.Responses = {
[constants_1.ZGMessageCode.AttributeReport]: {
name: 'AttributeReport',
ID: constants_1.ZGMessageCode.AttributeReport,
response: [
{ name: 'type', parameterType: parameterType_1.default.UINT8 },
],
},
[constants_1.ZGMessageCode.Status]: {
name: 'Status',
ID: constants_1.ZGMessageCode.Status,
response: [
{ name: 'type', parameterType: parameterType_1.default.UINT8 },
],
},
};
//# sourceMappingURL=definition.js.map