@synapticon/motion-master-client 2.3.0-beta.0 → 6.0.0-alpha.110

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/LICENSE +21 -0
  2. package/dist/api-error.d.ts +25 -0
  3. package/dist/api-error.js +52 -0
  4. package/dist/client.d.ts +20 -0
  5. package/dist/client.js +37 -0
  6. package/dist/constants.d.ts +2 -0
  7. package/dist/constants.js +8 -0
  8. package/dist/eni.d.ts +197 -0
  9. package/dist/eni.js +61 -0
  10. package/dist/generated/Api.d.ts +1886 -0
  11. package/dist/generated/Api.js +1293 -0
  12. package/dist/generated/data-contracts.d.ts +2282 -0
  13. package/dist/generated/data-contracts.js +12 -0
  14. package/dist/generated/http-client.d.ts +60 -0
  15. package/dist/generated/http-client.js +171 -0
  16. package/dist/hex.d.ts +2 -0
  17. package/dist/hex.js +20 -0
  18. package/dist/index.d.ts +13 -7
  19. package/dist/index.js +20 -22
  20. package/dist/lan.d.ts +4 -0
  21. package/dist/lan.js +59 -0
  22. package/dist/mmpd.d.ts +53 -0
  23. package/dist/mmpd.js +322 -0
  24. package/dist/sdo.d.ts +17 -0
  25. package/dist/sdo.js +219 -0
  26. package/dist/web-socket-connection.d.ts +70 -0
  27. package/dist/web-socket-connection.js +237 -0
  28. package/dist/wire-time.d.ts +2 -0
  29. package/dist/wire-time.js +18 -0
  30. package/package.json +29 -35
  31. package/.vscode/launch.json +0 -23
  32. package/README.md +0 -118
  33. package/box.config.json +0 -7
  34. package/dist/index.d.ts.map +0 -1
  35. package/dist/index.js.map +0 -1
  36. package/dist/motion-master-client-web-socket-connection.d.ts +0 -43
  37. package/dist/motion-master-client-web-socket-connection.d.ts.map +0 -1
  38. package/dist/motion-master-client-web-socket-connection.js +0 -91
  39. package/dist/motion-master-client-web-socket-connection.js.map +0 -1
  40. package/dist/motion-master-client.d.ts +0 -105
  41. package/dist/motion-master-client.d.ts.map +0 -1
  42. package/dist/motion-master-client.js +0 -348
  43. package/dist/motion-master-client.js.map +0 -1
  44. package/dist/motion-master-notification-subscribe-data.d.ts +0 -8
  45. package/dist/motion-master-notification-subscribe-data.d.ts.map +0 -1
  46. package/dist/motion-master-notification-subscribe-data.js +0 -3
  47. package/dist/motion-master-notification-subscribe-data.js.map +0 -1
  48. package/dist/motion-master-notification-web-socket-connection.d.ts +0 -56
  49. package/dist/motion-master-notification-web-socket-connection.d.ts.map +0 -1
  50. package/dist/motion-master-notification-web-socket-connection.js +0 -115
  51. package/dist/motion-master-notification-web-socket-connection.js.map +0 -1
  52. package/dist/motion-master-notification.d.ts +0 -31
  53. package/dist/motion-master-notification.d.ts.map +0 -1
  54. package/dist/motion-master-notification.js +0 -44
  55. package/dist/motion-master-notification.js.map +0 -1
  56. package/dist/util.d.ts +0 -16
  57. package/dist/util.d.ts.map +0 -1
  58. package/dist/util.js +0 -24
  59. package/dist/util.js.map +0 -1
  60. package/licenses.format.json +0 -4
  61. package/motion-master-client.config.json +0 -7
  62. package/smm_data_dic.json +0 -1213
  63. package/src/index.ts +0 -7
  64. package/src/motion-master-client-web-socket-connection.ts +0 -104
  65. package/src/motion-master-client.ts +0 -468
  66. package/src/motion-master-notification-subscribe-data.ts +0 -7
  67. package/src/motion-master-notification-web-socket-connection.ts +0 -143
  68. package/src/motion-master-notification.ts +0 -51
  69. package/src/util.ts +0 -22
  70. package/test.sh +0 -122
  71. package/tsconfig.json +0 -63
  72. package/tslint.json +0 -118
@@ -1,115 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MotionMasterNotificationWebSocketConnection = void 0;
4
- var rxjs_1 = require("rxjs");
5
- var lodash_1 = require("lodash");
6
- var operators_1 = require("rxjs/operators");
7
- var webSocket_1 = require("rxjs/webSocket");
8
- var uuid_1 = require("uuid");
9
- var motion_master_notification_1 = require("./motion-master-notification");
10
- var util_1 = require("./util");
11
- var MotionMasterNotificationWebSocketConnection = /** @class */ (function () {
12
- function MotionMasterNotificationWebSocketConnection(wssUrl) {
13
- var _this = this;
14
- if (wssUrl === void 0) { wssUrl = "ws://" + location.hostname + ":63525"; }
15
- this.wssUrl = wssUrl;
16
- this.notification = new motion_master_notification_1.MotionMasterNotification();
17
- this.connected$ = new rxjs_1.BehaviorSubject(false);
18
- this.monitoringTimedout$ = new rxjs_1.Subject();
19
- this.decoder = new TextDecoder('utf-8');
20
- this.closeObserver = {
21
- next: function () {
22
- _this.connected$.next(false);
23
- },
24
- };
25
- this.openObserver = {
26
- next: function () {
27
- _this.connected$.next(true);
28
- },
29
- };
30
- this.wssConfig = {
31
- binaryType: 'arraybuffer',
32
- closeObserver: this.closeObserver,
33
- deserializer: function (e) { return e.data; },
34
- openObserver: this.openObserver,
35
- url: this.wssUrl,
36
- };
37
- this.wss$ = webSocket_1.webSocket(this.wssConfig);
38
- /**
39
- * Map the incoming array buffer to topic (string) and payload (encoded protobuf message).
40
- */
41
- this.buffer$ = this.wss$.pipe(operators_1.map(function (buffer) {
42
- var end = new Uint8Array(buffer, 0, 1)[0] + 1; // topic length is the 1st byte (topic MUST be less than 255 bytes long)
43
- var topic = _this.decoder.decode(buffer.slice(1, end)); // topic starts from the 2nd byte
44
- return [topic, buffer.slice(end)]; // the rest is the payload (encoded protobuf message)
45
- }));
46
- /**
47
- * Map request message ids to subscriptions.
48
- */
49
- this.subscriptions = Object.create(null);
50
- }
51
- /**
52
- * Subscribe to a topic and optionally buffer messages.
53
- * First subscription will open WebSocket connection.
54
- * @param data subscribe data
55
- * @returns subscription id
56
- */
57
- MotionMasterNotificationWebSocketConnection.prototype.subscribe = function (data) {
58
- var _this = this;
59
- var _a = data.bufferSize, bufferSize = _a === void 0 ? 1 : _a, _b = data.distinct, distinct = _b === void 0 ? false : _b, _c = data.id, id = _c === void 0 ? uuid_1.v4() : _c, topic = data.topic, monitoringTimeoutDue = data.monitoringTimeoutDue;
60
- var sourceObservable = this.selectBufferByTopic(topic, true);
61
- var observable = sourceObservable;
62
- if (distinct) {
63
- observable = observable.pipe(
64
- // compare values only, ignore timestamps
65
- operators_1.distinctUntilChanged(function (x, y) {
66
- var _a, _b, _c, _d, _e, _f;
67
- return lodash_1.isEqual((_c = (_b = (_a = x === null || x === void 0 ? void 0 : x.status) === null || _a === void 0 ? void 0 : _a.monitoringParameterValues) === null || _b === void 0 ? void 0 : _b.deviceParameterValues) === null || _c === void 0 ? void 0 : _c.parameterValues, (_f = (_e = (_d = y === null || y === void 0 ? void 0 : y.status) === null || _d === void 0 ? void 0 : _d.monitoringParameterValues) === null || _e === void 0 ? void 0 : _e.deviceParameterValues) === null || _f === void 0 ? void 0 : _f.parameterValues);
68
- }));
69
- }
70
- var messages$ = observable.pipe(operators_1.bufferCount(bufferSize));
71
- var subscription = messages$.subscribe(function (messages) {
72
- _this.notification.input$.next({ topic: topic, messages: messages });
73
- });
74
- if (monitoringTimeoutDue) {
75
- subscription.add(sourceObservable.pipe(operators_1.timeout(monitoringTimeoutDue)).subscribe({
76
- error: function () { return _this.monitoringTimedout$.next({ id: id, topic: topic }); },
77
- }));
78
- }
79
- this.subscriptions[id] = subscription;
80
- return id;
81
- };
82
- /**
83
- * Unsubscribe from a previous subscription.
84
- * WebSocket connection will close on last unsubscribe.
85
- * @todo find a way to emit all buffered messages before unsubscribe.
86
- * @param id message id related to previous subscription
87
- */
88
- MotionMasterNotificationWebSocketConnection.prototype.unsubscribe = function (id) {
89
- if (this.subscriptions[id]) {
90
- this.subscriptions[id].unsubscribe();
91
- delete this.subscriptions[id];
92
- }
93
- };
94
- /**
95
- * Unsubscribe from all previously subscribed topics.
96
- */
97
- MotionMasterNotificationWebSocketConnection.prototype.unsubscribeAll = function () {
98
- var _this = this;
99
- Object.keys(this.subscriptions).forEach(function (id) { return _this.unsubscribe(id); });
100
- };
101
- /**
102
- * Select incoming buffer by topic and optionally decode it to MotionMasterMessage.
103
- * @param topic to filter incoming messages by
104
- * @param decode to MotionMasterMessage or leave the content as Uint8Array
105
- * @returns an observable of topic and depending on the value of decode argument: MotionMasterMessage when true, Uint8Array otherwise
106
- */
107
- MotionMasterNotificationWebSocketConnection.prototype.selectBufferByTopic = function (topic, decode) {
108
- return this.buffer$.pipe(operators_1.filter(function (data) { return data[0] === topic; }), operators_1.map(function (data) { return decode
109
- ? util_1.MotionMasterMessage.decode(new Uint8Array(data[1]))
110
- : new Uint8Array(data[1]); }));
111
- };
112
- return MotionMasterNotificationWebSocketConnection;
113
- }());
114
- exports.MotionMasterNotificationWebSocketConnection = MotionMasterNotificationWebSocketConnection;
115
- //# sourceMappingURL=motion-master-notification-web-socket-connection.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"motion-master-notification-web-socket-connection.js","sourceRoot":"","sources":["../src/motion-master-notification-web-socket-connection.ts"],"names":[],"mappings":";;;AAAA,6BAA0E;AAC1E,iCAAiC;AACjC,4CAAyF;AACzF,4CAAqF;AACrF,6BAA0B;AAE1B,2EAAwE;AAExE,+BAA6C;AAE7C;IA+CE,qDACS,MAA0C;QADnD,iBAEK;QADI,uBAAA,EAAA,mBAAiB,QAAQ,CAAC,QAAQ,WAAQ;QAA1C,WAAM,GAAN,MAAM,CAAoC;QA9CnD,iBAAY,GAAG,IAAI,qDAAwB,EAAE,CAAC;QAErC,eAAU,GAAG,IAAI,sBAAe,CAAU,KAAK,CAAC,CAAC;QACjD,wBAAmB,GAAG,IAAI,cAAO,EAAiC,CAAC;QAEpE,YAAO,GAAG,IAAI,WAAW,CAAC,OAAO,CAAC,CAAC;QAEnC,kBAAa,GAAG;YACtB,IAAI,EAAE;gBACJ,KAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAC9B,CAAC;SACF,CAAC;QAEM,iBAAY,GAAG;YACrB,IAAI,EAAE;gBACJ,KAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC7B,CAAC;SACF,CAAC;QAEF,cAAS,GAAwC;YAC/C,UAAU,EAAE,aAAa;YACzB,aAAa,EAAE,IAAI,C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C,OAAO,IAAI,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;SAC/B;IACH,CAAC;IAED;;OAEG;IACH,oEAAc,GAAd;QAAA,iBAEC;QADC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,UAAC,EAAE,IAAK,OAAA,KAAI,CAAC,WAAW,CAAC,EAAE,CAAC,EAApB,CAAoB,CAAC,CAAC;IACxE,CAAC;IAED;;;;;OAKG;IACH,yEAAmB,GAAnB,UAAuC,KAAa,EAAE,MAAS;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,kBAAM,CAAC,UAAC,IAAI,IAAK,OAAA,IAAI,CAAC,CAAC,CAAC,KAAK,KAAK,EAAjB,CAAiB,CAAC,EACnC,eAAG,CAAC,UAAC,IAAI,IAAK,OAAA,MAAM;YAClB,CAAC,CAAC,0BAAmB,CAAC,MAAM,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;YACrD,CAAC,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAFb,CAEa,CAC1B,CACK,CAAC;IACX,CAAC;IAEH,kDAAC;AAAD,CAAC,AApID,IAoIC;AApIY,kGAA2C"}
@@ -1,31 +0,0 @@
1
- import { Subject } from 'rxjs';
2
- import { MotionMasterMessage } from './util';
3
- export declare class MotionMasterNotification {
4
- /**
5
- * Buffered messages by topic.
6
- */
7
- readonly input$: Subject<{
8
- topic: string;
9
- messages: MotionMasterMessage[];
10
- }>;
11
- /**
12
- * Notification messages are system and device events.
13
- */
14
- readonly notification$: import("rxjs").Observable<MotionMasterMessage>;
15
- /**
16
- * An observable of system event status messages.
17
- * Motion Master goes through several states until it gets to initialized.
18
- */
19
- readonly systemEvent$: import("rxjs").Observable<MotionMasterMessage.Status.ISystemEvent>;
20
- /**
21
- * An observable of device event status messages.
22
- */
23
- readonly deviceEvent$: import("rxjs").Observable<MotionMasterMessage.Status.IDeviceEvent>;
24
- /**
25
- * Select messages by topic.
26
- * @param t topic to filter by
27
- * @returns an observable of messages
28
- */
29
- selectMessagesByTopic(t: string): import("rxjs").Observable<MotionMasterMessage[]>;
30
- }
31
- //# sourceMappingURL=motion-master-notification.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"motion-master-notification.d.ts","sourceRoot":"","sources":["../src/motion-master-notification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,OAAO,EAAE,MAAM,MAAM,CAAC;AAGrC,OAAO,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAE7C,qBAAa,wBAAwB;IAEnC;;OAEG;IACH,QAAQ,CAAC,MAAM;eAAwB,MAAM;kBAAY,mBAAmB,EAAE;OAAM;IAEpF;;OAEG;IACH,QAAQ,CAAC,aAAa,iDAEpB;IAEF;;;OAGG;IACH,QAAQ,CAAC,YAAY,qEAInB;IAEF;;OAEG;IACH,QAAQ,CAAC,YAAY,qEAInB;IAEF;;;;OAIG;IACH,qBAAqB,CAAC,CAAC,EAAE,MAAM;CAOhC"}
@@ -1,44 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MotionMasterNotification = void 0;
4
- var rxjs_1 = require("rxjs");
5
- var operators_1 = require("rxjs/operators");
6
- var MotionMasterNotification = /** @class */ (function () {
7
- function MotionMasterNotification() {
8
- /**
9
- * Buffered messages by topic.
10
- */
11
- this.input$ = new rxjs_1.Subject();
12
- /**
13
- * Notification messages are system and device events.
14
- */
15
- this.notification$ = this.selectMessagesByTopic('notification').pipe(operators_1.switchMap(function (messages) { return rxjs_1.from(messages); }));
16
- /**
17
- * An observable of system event status messages.
18
- * Motion Master goes through several states until it gets to initialized.
19
- */
20
- this.systemEvent$ = this.notification$.pipe(operators_1.filter(function (message) { return (message.status && 'systemEvent' in message.status) === true; }),
21
- // tslint:disable-next-line: no-non-null-assertion
22
- operators_1.map(function (message) { return message.status.systemEvent; }));
23
- /**
24
- * An observable of device event status messages.
25
- */
26
- this.deviceEvent$ = this.notification$.pipe(operators_1.filter(function (message) { return (message.status && 'deviceEvent' in message.status) === true; }),
27
- // tslint:disable-next-line: no-non-null-assertion
28
- operators_1.map(function (message) { return message.status.deviceEvent; }));
29
- }
30
- /**
31
- * Select messages by topic.
32
- * @param t topic to filter by
33
- * @returns an observable of messages
34
- */
35
- MotionMasterNotification.prototype.selectMessagesByTopic = function (t) {
36
- return this.input$.pipe(operators_1.filter(function (_a) {
37
- var topic = _a.topic;
38
- return topic === t;
39
- }), operators_1.pluck('messages'));
40
- };
41
- return MotionMasterNotification;
42
- }());
43
- exports.MotionMasterNotification = MotionMasterNotification;
44
- //# sourceMappingURL=motion-master-notification.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"motion-master-notification.js","sourceRoot":"","sources":["../src/motion-master-notification.ts"],"names":[],"mappings":";;;AAAA,6BAAqC;AACrC,4CAA+D;AAI/D;IAAA;QAEE;;WAEG;QACM,WAAM,GAAG,IAAI,cAAO,EAAsD,CAAC;QAEpF;;WAEG;QACM,kBAAa,GAAG,IAAI,CAAC,qBAAqB,CAAC,cAAc,CAAC,CAAC,IAAI,CACtE,qBAAS,CAAC,UAAC,QAAQ,IAAK,OAAA,WAAI,CAAC,QAAQ,CAAC,EAAd,CAAc,CAAC,CACxC,CAAC;QAEF;;;WAGG;QACM,iBAAY,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAC7C,kBAAM,CAAC,UAAC,OAAO,IAAK,OAAA,CAAC,OAAO,CAAC,MAAM,IAAI,aAAa,IAAI,OAAO,CAAC,MAAM,CAAC,KAAK,IAAI,EAA5D,CAA4D,CAAC;QACjF,kDAAkD;QAClD,eAAG,CAAC,UAAC,OAAO,IAAK,OAAA,OAAO,CAAC,MAAO,CAAC,WAAY,EAA5B,CAA4B,CAAC,CAC/C,CAAC;QAEF;;WAEG;QACM,iBAAY,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAC7C,kBAAM,CAAC,UAAC,OAAO,IAAK,OAAA,CAAC,OAAO,CAAC,MAAM,IAAI,aAAa,IAAI,OAAO,CAAC,MAAM,CAAC,KAAK,IAAI,EAA5D,CAA4D,CAAC;QACjF,kDAAkD;QAClD,eAAG,CAAC,UAAC,OAAO,IAAK,OAAA,OAAO,CAAC,MAAO,CAAC,WAAY,EAA5B,CAA4B,CAAC,CAC/C,CAAC;IAcJ,CAAC;IAZC;;;;OAIG;IACH,wDAAqB,GAArB,UAAsB,CAAS;QAC7B,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CACrB,kBAAM,CAAC,UAAC,EAAS;gBAAP,KAAK,WAAA;YAAO,OAAA,KAAK,KAAK,CAAC;QAAX,CAAW,CAAC,EAClC,iBAAK,CAAC,UAAU,CAAC,CAClB,CAAC;IACJ,CAAC;IAEH,+BAAC;AAAD,CAAC,AA7CD,IA6CC;AA7CY,4DAAwB"}
package/dist/util.d.ts DELETED
@@ -1,16 +0,0 @@
1
- import { motionmaster } from '@synapticon/motion-master-proto';
2
- export import MotionMasterMessage = motionmaster.MotionMasterMessage;
3
- export import IMotionMasterMessage = motionmaster.IMotionMasterMessage;
4
- /**
5
- * Encode MotionMasterMessage to typed array.
6
- * @param message an instance of MotionMasterMessage.
7
- * @returns Uint8Array
8
- */
9
- export declare function encodeMotionMasterMessage(message: IMotionMasterMessage): Uint8Array;
10
- /**
11
- * Decode MotionMasterMessage from typed array.
12
- * @param data Uint8Array to decode
13
- * @returns MotionMasterMessage
14
- */
15
- export declare function decodeMotionMasterMessage(data: Uint8Array): motionmaster.MotionMasterMessage;
16
- //# sourceMappingURL=util.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAE/D,MAAM,QAAQ,mBAAmB,GAAG,YAAY,CAAC,mBAAmB,CAAC;AACrE,MAAM,QAAQ,oBAAoB,GAAG,YAAY,CAAC,oBAAoB,CAAC;AAEvE;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,oBAAoB,cAEtE;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,UAAU,oCAEzD"}
package/dist/util.js DELETED
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.decodeMotionMasterMessage = exports.encodeMotionMasterMessage = exports.MotionMasterMessage = void 0;
4
- var motion_master_proto_1 = require("@synapticon/motion-master-proto");
5
- exports.MotionMasterMessage = motion_master_proto_1.motionmaster.MotionMasterMessage;
6
- /**
7
- * Encode MotionMasterMessage to typed array.
8
- * @param message an instance of MotionMasterMessage.
9
- * @returns Uint8Array
10
- */
11
- function encodeMotionMasterMessage(message) {
12
- return exports.MotionMasterMessage.encode(message).finish();
13
- }
14
- exports.encodeMotionMasterMessage = encodeMotionMasterMessage;
15
- /**
16
- * Decode MotionMasterMessage from typed array.
17
- * @param data Uint8Array to decode
18
- * @returns MotionMasterMessage
19
- */
20
- function decodeMotionMasterMessage(data) {
21
- return exports.MotionMasterMessage.decode(data);
22
- }
23
- exports.decodeMotionMasterMessage = decodeMotionMasterMessage;
24
- //# sourceMappingURL=util.js.map
package/dist/util.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":";;;AAAA,uEAA+D;AAEjD,QAAA,mBAAmB,GAAG,kCAAY,CAAC,mBAAmB,CAAC;AAGrE;;;;GAIG;AACH,SAAgB,yBAAyB,CAAC,OAA6B;IACrE,OAAO,2BAAmB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC;AACtD,CAAC;AAFD,8DAEC;AAED;;;;GAIG;AACH,SAAgB,yBAAyB,CAAC,IAAgB;IACxD,OAAO,2BAAmB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC1C,CAAC;AAFD,8DAEC"}
@@ -1,4 +0,0 @@
1
- {
2
- "licenses": "",
3
- "description": ""
4
- }
@@ -1,7 +0,0 @@
1
- {
2
- "pingSystemInterval": 200,
3
- "motionMasterHeartbeatTimeoutDue": 1000,
4
- "serverEndpoint": "tcp://127.0.0.1:62524",
5
- "notificationEndpoint": "tcp://127.0.0.1:62525",
6
- "identity": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
7
- }