formatDiyDevice.js 370 B

123456789101112
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.default = (function (device) {
  4. var txt = device.txt, a = device.a, srv = device.srv;
  5. return {
  6. id: txt.id,
  7. type: txt.type,
  8. data: txt.data1,
  9. ip: a,
  10. port: (srv === null || srv === void 0 ? void 0 : srv.port) || 8081,
  11. };
  12. });