UNPKG

node-enocean-ts

Version:

Typescript full implementation of the enocean protocol (ESP3 + EEP2.6)

16 lines 464 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = default_1; function default_1(eep, data) { var begin = eep.split("-"); //24 bytes of data if (begin[0] === "d1" && data.length == 24 * 2) { return [{ type: "contactair", serial: data.substring(0, 6 * 2), data: data }]; } return undefined; } //# sourceMappingURL=eep-d1-ff-00.js.map