@zaber/motion 2.11.2 → 2.12.0
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.
- package/LICENSE +1538 -3009
- package/dist/binding/wasm/zaber-motion-lib.wasm +0 -0
- package/dist/lib/ascii/axis.d.ts +6 -0
- package/dist/lib/ascii/axis.js +8 -0
- package/dist/lib/ascii/axis.js.map +1 -1
- package/dist/lib/ascii/connection.d.ts +2 -0
- package/dist/lib/ascii/connection.js +2 -0
- package/dist/lib/ascii/connection.js.map +1 -1
- package/dist/lib/ascii/device.d.ts +7 -0
- package/dist/lib/ascii/device.js +9 -0
- package/dist/lib/ascii/device.js.map +1 -1
- package/dist/lib/ascii/index.d.ts +1 -0
- package/dist/lib/ascii/index.js +4 -1
- package/dist/lib/ascii/index.js.map +1 -1
- package/dist/lib/ascii/storage.d.ts +98 -0
- package/dist/lib/ascii/storage.js +220 -0
- package/dist/lib/ascii/storage.js.map +1 -0
- package/dist/lib/ascii_ns.d.ts +4 -0
- package/dist/lib/ascii_ns.js +2 -0
- package/dist/lib/ascii_ns.js.map +1 -1
- package/dist/lib/exceptions/command_too_long_exception.d.ts +14 -0
- package/dist/lib/exceptions/command_too_long_exception.js +32 -0
- package/dist/lib/exceptions/command_too_long_exception.js.map +1 -0
- package/dist/lib/exceptions/command_too_long_exception_data.d.ts +24 -0
- package/dist/lib/exceptions/command_too_long_exception_data.js +20 -0
- package/dist/lib/exceptions/command_too_long_exception_data.js.map +1 -0
- package/dist/lib/exceptions/index.d.ts +3 -0
- package/dist/lib/exceptions/index.js +8 -2
- package/dist/lib/exceptions/index.js.map +1 -1
- package/dist/lib/exceptions/no_value_for_key_exception.d.ts +7 -0
- package/dist/lib/exceptions/no_value_for_key_exception.js +17 -0
- package/dist/lib/exceptions/no_value_for_key_exception.js.map +1 -0
- package/dist/lib/gateway/convert_exceptions.js +2 -0
- package/dist/lib/gateway/convert_exceptions.js.map +1 -1
- package/dist/lib/protobufs/main_pb.d.ts +306 -0
- package/dist/lib/protobufs/main_pb.js +2303 -1
- package/dist/lib/protobufs/main_pb.js.map +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { Axis } from './axis';
|
|
2
|
+
import { Device } from './device';
|
|
3
|
+
/**
|
|
4
|
+
* Class providing access to axis storage.
|
|
5
|
+
*/
|
|
6
|
+
export declare class AxisStorage {
|
|
7
|
+
private _axis;
|
|
8
|
+
constructor(axis: Axis);
|
|
9
|
+
/**
|
|
10
|
+
* Sets the axis value stored at the provided key.
|
|
11
|
+
* @param key Key to set the value at.
|
|
12
|
+
* @param value Value to set.
|
|
13
|
+
* @param encode Whether the stored value should be base64 encoded before being stored.
|
|
14
|
+
* This makes the string unreadable to humans using the ASCII protocol,
|
|
15
|
+
* however, values stored this way can be of any length and use non-ASCII and protocol reserved characters.
|
|
16
|
+
*/
|
|
17
|
+
setString(key: string, value: string, encode?: boolean): Promise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* Gets the axis value stored with the provided key.
|
|
20
|
+
* @param key Key to read the value of.
|
|
21
|
+
* @param decode Whether the stored value should be decoded.
|
|
22
|
+
* Only use this when reading values set by storage.set with "encode" true.
|
|
23
|
+
* @return Stored value.
|
|
24
|
+
*/
|
|
25
|
+
getString(key: string, decode?: boolean): Promise<string>;
|
|
26
|
+
/**
|
|
27
|
+
* Sets the value at the provided key to the provided number.
|
|
28
|
+
* @param key Key to set the value at.
|
|
29
|
+
* @param value Value to set.
|
|
30
|
+
*/
|
|
31
|
+
setNumber(key: string, value: number): Promise<void>;
|
|
32
|
+
/**
|
|
33
|
+
* Gets the value at the provided key interpreted as a number.
|
|
34
|
+
* @param key Key to get the value at.
|
|
35
|
+
* @return Stored value.
|
|
36
|
+
*/
|
|
37
|
+
getNumber(key: string): Promise<number>;
|
|
38
|
+
/**
|
|
39
|
+
* Sets the value at the provided key to the provided boolean.
|
|
40
|
+
* @param key Key to set the value at.
|
|
41
|
+
* @param value Value to set.
|
|
42
|
+
*/
|
|
43
|
+
setBool(key: string, value: boolean): Promise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* Gets the value at the provided key interpreted as a boolean.
|
|
46
|
+
* @param key Key to get the value at.
|
|
47
|
+
* @return Stored value.
|
|
48
|
+
*/
|
|
49
|
+
getBool(key: string): Promise<boolean>;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Class providing access to device storage.
|
|
53
|
+
*/
|
|
54
|
+
export declare class DeviceStorage {
|
|
55
|
+
private _device;
|
|
56
|
+
constructor(device: Device);
|
|
57
|
+
/**
|
|
58
|
+
* Sets the device value stored at the provided key.
|
|
59
|
+
* @param key Key to set the value at.
|
|
60
|
+
* @param value Value to set.
|
|
61
|
+
* @param encode Whether the stored value should be base64 encoded before being stored.
|
|
62
|
+
* This makes the string unreadable to humans using the ASCII protocol,
|
|
63
|
+
* however, values stored this way can be of any length and use non-ASCII and protocol reserved characters.
|
|
64
|
+
*/
|
|
65
|
+
setString(key: string, value: string, encode?: boolean): Promise<void>;
|
|
66
|
+
/**
|
|
67
|
+
* Gets the device value stored with the provided key.
|
|
68
|
+
* @param key Key to read the value of.
|
|
69
|
+
* @param decode Whether the stored value should be decoded.
|
|
70
|
+
* Only use this when reading values set by storage.set with "encode" true.
|
|
71
|
+
* @return Stored value.
|
|
72
|
+
*/
|
|
73
|
+
getString(key: string, decode?: boolean): Promise<string>;
|
|
74
|
+
/**
|
|
75
|
+
* Sets the value at the provided key to the provided number.
|
|
76
|
+
* @param key Key to set the value at.
|
|
77
|
+
* @param value Value to set.
|
|
78
|
+
*/
|
|
79
|
+
setNumber(key: string, value: number): Promise<void>;
|
|
80
|
+
/**
|
|
81
|
+
* Gets the value at the provided key interpreted as a number.
|
|
82
|
+
* @param key Key to get the value at.
|
|
83
|
+
* @return Stored value.
|
|
84
|
+
*/
|
|
85
|
+
getNumber(key: string): Promise<number>;
|
|
86
|
+
/**
|
|
87
|
+
* Sets the value at the provided key to the provided boolean.
|
|
88
|
+
* @param key Key to set the value at.
|
|
89
|
+
* @param value Value to set.
|
|
90
|
+
*/
|
|
91
|
+
setBool(key: string, value: boolean): Promise<void>;
|
|
92
|
+
/**
|
|
93
|
+
* Gets the value at the provided key interpreted as a boolean.
|
|
94
|
+
* @param key Key to get the value at.
|
|
95
|
+
* @return Stored value.
|
|
96
|
+
*/
|
|
97
|
+
getBool(key: string): Promise<boolean>;
|
|
98
|
+
}
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //
|
|
3
|
+
// ============= DO NOT EDIT DIRECTLY ============= //
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
7
|
+
}) : (function(o, m, k, k2) {
|
|
8
|
+
if (k2 === undefined) k2 = k;
|
|
9
|
+
o[k2] = m[k];
|
|
10
|
+
}));
|
|
11
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
12
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
13
|
+
}) : function(o, v) {
|
|
14
|
+
o["default"] = v;
|
|
15
|
+
});
|
|
16
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
17
|
+
if (mod && mod.__esModule) return mod;
|
|
18
|
+
var result = {};
|
|
19
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
20
|
+
__setModuleDefault(result, mod);
|
|
21
|
+
return result;
|
|
22
|
+
};
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.DeviceStorage = exports.AxisStorage = void 0;
|
|
25
|
+
const gateway = __importStar(require("../gateway"));
|
|
26
|
+
/**
|
|
27
|
+
* Class providing access to axis storage.
|
|
28
|
+
*/
|
|
29
|
+
class AxisStorage {
|
|
30
|
+
constructor(axis) {
|
|
31
|
+
this._axis = axis;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Sets the axis value stored at the provided key.
|
|
35
|
+
* @param key Key to set the value at.
|
|
36
|
+
* @param value Value to set.
|
|
37
|
+
* @param encode Whether the stored value should be base64 encoded before being stored.
|
|
38
|
+
* This makes the string unreadable to humans using the ASCII protocol,
|
|
39
|
+
* however, values stored this way can be of any length and use non-ASCII and protocol reserved characters.
|
|
40
|
+
*/
|
|
41
|
+
async setString(key, value, encode = false) {
|
|
42
|
+
const request = new gateway.DeviceSetStorageRequest();
|
|
43
|
+
request.setInterfaceId(this._axis.device.connection.interfaceId);
|
|
44
|
+
request.setDevice(this._axis.device.deviceAddress);
|
|
45
|
+
request.setAxis(this._axis.axisNumber);
|
|
46
|
+
request.setKey(key);
|
|
47
|
+
request.setValue(value);
|
|
48
|
+
request.setEncode(encode);
|
|
49
|
+
await gateway.callAsync('device/set_storage', request);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Gets the axis value stored with the provided key.
|
|
53
|
+
* @param key Key to read the value of.
|
|
54
|
+
* @param decode Whether the stored value should be decoded.
|
|
55
|
+
* Only use this when reading values set by storage.set with "encode" true.
|
|
56
|
+
* @return Stored value.
|
|
57
|
+
*/
|
|
58
|
+
async getString(key, decode = false) {
|
|
59
|
+
const request = new gateway.DeviceGetStorageRequest();
|
|
60
|
+
request.setInterfaceId(this._axis.device.connection.interfaceId);
|
|
61
|
+
request.setDevice(this._axis.device.deviceAddress);
|
|
62
|
+
request.setAxis(this._axis.axisNumber);
|
|
63
|
+
request.setKey(key);
|
|
64
|
+
request.setDecode(decode);
|
|
65
|
+
const response = await gateway.callAsync('device/get_storage', request, gateway.DeviceGetStorageResponse);
|
|
66
|
+
return response.getValue();
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Sets the value at the provided key to the provided number.
|
|
70
|
+
* @param key Key to set the value at.
|
|
71
|
+
* @param value Value to set.
|
|
72
|
+
*/
|
|
73
|
+
async setNumber(key, value) {
|
|
74
|
+
const request = new gateway.DeviceSetStorageNumberRequest();
|
|
75
|
+
request.setInterfaceId(this._axis.device.connection.interfaceId);
|
|
76
|
+
request.setDevice(this._axis.device.deviceAddress);
|
|
77
|
+
request.setAxis(this._axis.axisNumber);
|
|
78
|
+
request.setKey(key);
|
|
79
|
+
request.setValue(value);
|
|
80
|
+
await gateway.callAsync('device/set_storage_number', request);
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Gets the value at the provided key interpreted as a number.
|
|
84
|
+
* @param key Key to get the value at.
|
|
85
|
+
* @return Stored value.
|
|
86
|
+
*/
|
|
87
|
+
async getNumber(key) {
|
|
88
|
+
const request = new gateway.DeviceSetStorageNumberRequest();
|
|
89
|
+
request.setInterfaceId(this._axis.device.connection.interfaceId);
|
|
90
|
+
request.setDevice(this._axis.device.deviceAddress);
|
|
91
|
+
request.setAxis(this._axis.axisNumber);
|
|
92
|
+
request.setKey(key);
|
|
93
|
+
const response = await gateway.callAsync('device/get_storage_number', request, gateway.DeviceGetStorageNumberResponse);
|
|
94
|
+
return response.getValue();
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Sets the value at the provided key to the provided boolean.
|
|
98
|
+
* @param key Key to set the value at.
|
|
99
|
+
* @param value Value to set.
|
|
100
|
+
*/
|
|
101
|
+
async setBool(key, value) {
|
|
102
|
+
const request = new gateway.DeviceSetStorageBoolRequest();
|
|
103
|
+
request.setInterfaceId(this._axis.device.connection.interfaceId);
|
|
104
|
+
request.setDevice(this._axis.device.deviceAddress);
|
|
105
|
+
request.setAxis(this._axis.axisNumber);
|
|
106
|
+
request.setKey(key);
|
|
107
|
+
request.setValue(value);
|
|
108
|
+
await gateway.callAsync('device/set_storage_bool', request);
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Gets the value at the provided key interpreted as a boolean.
|
|
112
|
+
* @param key Key to get the value at.
|
|
113
|
+
* @return Stored value.
|
|
114
|
+
*/
|
|
115
|
+
async getBool(key) {
|
|
116
|
+
const request = new gateway.DeviceSetStorageBoolRequest();
|
|
117
|
+
request.setInterfaceId(this._axis.device.connection.interfaceId);
|
|
118
|
+
request.setDevice(this._axis.device.deviceAddress);
|
|
119
|
+
request.setAxis(this._axis.axisNumber);
|
|
120
|
+
request.setKey(key);
|
|
121
|
+
const response = await gateway.callAsync('device/get_storage_bool', request, gateway.DeviceGetStorageBoolResponse);
|
|
122
|
+
return response.getValue();
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
exports.AxisStorage = AxisStorage;
|
|
126
|
+
/**
|
|
127
|
+
* Class providing access to device storage.
|
|
128
|
+
*/
|
|
129
|
+
class DeviceStorage {
|
|
130
|
+
constructor(device) {
|
|
131
|
+
this._device = device;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Sets the device value stored at the provided key.
|
|
135
|
+
* @param key Key to set the value at.
|
|
136
|
+
* @param value Value to set.
|
|
137
|
+
* @param encode Whether the stored value should be base64 encoded before being stored.
|
|
138
|
+
* This makes the string unreadable to humans using the ASCII protocol,
|
|
139
|
+
* however, values stored this way can be of any length and use non-ASCII and protocol reserved characters.
|
|
140
|
+
*/
|
|
141
|
+
async setString(key, value, encode = false) {
|
|
142
|
+
const request = new gateway.DeviceSetStorageRequest();
|
|
143
|
+
request.setInterfaceId(this._device.connection.interfaceId);
|
|
144
|
+
request.setDevice(this._device.deviceAddress);
|
|
145
|
+
request.setKey(key);
|
|
146
|
+
request.setValue(value);
|
|
147
|
+
request.setEncode(encode);
|
|
148
|
+
await gateway.callAsync('device/set_storage', request);
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Gets the device value stored with the provided key.
|
|
152
|
+
* @param key Key to read the value of.
|
|
153
|
+
* @param decode Whether the stored value should be decoded.
|
|
154
|
+
* Only use this when reading values set by storage.set with "encode" true.
|
|
155
|
+
* @return Stored value.
|
|
156
|
+
*/
|
|
157
|
+
async getString(key, decode = false) {
|
|
158
|
+
const request = new gateway.DeviceGetStorageRequest();
|
|
159
|
+
request.setInterfaceId(this._device.connection.interfaceId);
|
|
160
|
+
request.setDevice(this._device.deviceAddress);
|
|
161
|
+
request.setKey(key);
|
|
162
|
+
request.setDecode(decode);
|
|
163
|
+
const response = await gateway.callAsync('device/get_storage', request, gateway.DeviceGetStorageResponse);
|
|
164
|
+
return response.getValue();
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Sets the value at the provided key to the provided number.
|
|
168
|
+
* @param key Key to set the value at.
|
|
169
|
+
* @param value Value to set.
|
|
170
|
+
*/
|
|
171
|
+
async setNumber(key, value) {
|
|
172
|
+
const request = new gateway.DeviceSetStorageNumberRequest();
|
|
173
|
+
request.setInterfaceId(this._device.connection.interfaceId);
|
|
174
|
+
request.setDevice(this._device.deviceAddress);
|
|
175
|
+
request.setKey(key);
|
|
176
|
+
request.setValue(value);
|
|
177
|
+
await gateway.callAsync('device/set_storage_number', request);
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Gets the value at the provided key interpreted as a number.
|
|
181
|
+
* @param key Key to get the value at.
|
|
182
|
+
* @return Stored value.
|
|
183
|
+
*/
|
|
184
|
+
async getNumber(key) {
|
|
185
|
+
const request = new gateway.DeviceSetStorageNumberRequest();
|
|
186
|
+
request.setInterfaceId(this._device.connection.interfaceId);
|
|
187
|
+
request.setDevice(this._device.deviceAddress);
|
|
188
|
+
request.setKey(key);
|
|
189
|
+
const response = await gateway.callAsync('device/get_storage_number', request, gateway.DeviceGetStorageNumberResponse);
|
|
190
|
+
return response.getValue();
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Sets the value at the provided key to the provided boolean.
|
|
194
|
+
* @param key Key to set the value at.
|
|
195
|
+
* @param value Value to set.
|
|
196
|
+
*/
|
|
197
|
+
async setBool(key, value) {
|
|
198
|
+
const request = new gateway.DeviceSetStorageBoolRequest();
|
|
199
|
+
request.setInterfaceId(this._device.connection.interfaceId);
|
|
200
|
+
request.setDevice(this._device.deviceAddress);
|
|
201
|
+
request.setKey(key);
|
|
202
|
+
request.setValue(value);
|
|
203
|
+
await gateway.callAsync('device/set_storage_bool', request);
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Gets the value at the provided key interpreted as a boolean.
|
|
207
|
+
* @param key Key to get the value at.
|
|
208
|
+
* @return Stored value.
|
|
209
|
+
*/
|
|
210
|
+
async getBool(key) {
|
|
211
|
+
const request = new gateway.DeviceSetStorageBoolRequest();
|
|
212
|
+
request.setInterfaceId(this._device.connection.interfaceId);
|
|
213
|
+
request.setDevice(this._device.deviceAddress);
|
|
214
|
+
request.setKey(key);
|
|
215
|
+
const response = await gateway.callAsync('device/get_storage_bool', request, gateway.DeviceGetStorageBoolResponse);
|
|
216
|
+
return response.getValue();
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
exports.DeviceStorage = DeviceStorage;
|
|
220
|
+
//# sourceMappingURL=storage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage.js","sourceRoot":"","sources":["../../../src/ascii/storage.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;AAItD,oDAAsC;AAEtC;;GAEG;AACH,MAAa,WAAW;IAGtB,YAAY,IAAU;QACpB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACpB,CAAC;IAED;;;;;;;OAOG;IACI,KAAK,CAAC,SAAS,CACpB,GAAW,EACX,KAAa,EACb,SAAkB,KAAK;QAEvB,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,uBAAuB,EAAE,CAAC;QACtD,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QACjE,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,C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Aa,CAAC,CAAC;QAC9C,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAEpB,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,SAAS,CACtC,yBAAyB,EACzB,OAAO,EACP,OAAO,CAAC,4BAA4B,CAAC,CAAC;QACxC,OAAO,QAAQ,CAAC,QAAQ,EAAE,CAAC;IAC7B,CAAC;CACF;AAjID,sCAiIC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { Axis } from './axis';\nimport { Device } from './device';\nimport * as gateway from '../gateway';\n\n/**\n * Class providing access to axis storage.\n */\nexport class AxisStorage {\n private _axis: Axis;\n\n constructor(axis: Axis) {\n this._axis = axis;\n }\n\n /**\n * Sets the axis value stored at the provided key.\n * @param key Key to set the value at.\n * @param value Value to set.\n * @param encode Whether the stored value should be base64 encoded before being stored.\n * This makes the string unreadable to humans using the ASCII protocol,\n * however, values stored this way can be of any length and use non-ASCII and protocol reserved characters.\n */\n public async setString(\n key: string,\n value: string,\n encode: boolean = false\n ): Promise<void> {\n const request = new gateway.DeviceSetStorageRequest();\n request.setInterfaceId(this._axis.device.connection.interfaceId);\n request.setDevice(this._axis.device.deviceAddress);\n request.setAxis(this._axis.axisNumber);\n request.setKey(key);\n request.setValue(value);\n request.setEncode(encode);\n\n await gateway.callAsync('device/set_storage', request);\n }\n\n /**\n * Gets the axis value stored with the provided key.\n * @param key Key to read the value of.\n * @param decode Whether the stored value should be decoded.\n * Only use this when reading values set by storage.set with \"encode\" true.\n * @return Stored value.\n */\n public async getString(\n key: string,\n decode: boolean = false\n ): Promise<string> {\n const request = new gateway.DeviceGetStorageRequest();\n request.setInterfaceId(this._axis.device.connection.interfaceId);\n request.setDevice(this._axis.device.deviceAddress);\n request.setAxis(this._axis.axisNumber);\n request.setKey(key);\n request.setDecode(decode);\n\n const response = await gateway.callAsync<gateway.DeviceGetStorageResponse>(\n 'device/get_storage',\n request,\n gateway.DeviceGetStorageResponse);\n return response.getValue();\n }\n\n /**\n * Sets the value at the provided key to the provided number.\n * @param key Key to set the value at.\n * @param value Value to set.\n */\n public async setNumber(\n key: string,\n value: number\n ): Promise<void> {\n const request = new gateway.DeviceSetStorageNumberRequest();\n request.setInterfaceId(this._axis.device.connection.interfaceId);\n request.setDevice(this._axis.device.deviceAddress);\n request.setAxis(this._axis.axisNumber);\n request.setKey(key);\n request.setValue(value);\n\n await gateway.callAsync('device/set_storage_number', request);\n }\n\n /**\n * Gets the value at the provided key interpreted as a number.\n * @param key Key to get the value at.\n * @return Stored value.\n */\n public async getNumber(\n key: string\n ): Promise<number> {\n const request = new gateway.DeviceSetStorageNumberRequest();\n request.setInterfaceId(this._axis.device.connection.interfaceId);\n request.setDevice(this._axis.device.deviceAddress);\n request.setAxis(this._axis.axisNumber);\n request.setKey(key);\n\n const response = await gateway.callAsync<gateway.DeviceGetStorageNumberResponse>(\n 'device/get_storage_number',\n request,\n gateway.DeviceGetStorageNumberResponse);\n return response.getValue();\n }\n\n /**\n * Sets the value at the provided key to the provided boolean.\n * @param key Key to set the value at.\n * @param value Value to set.\n */\n public async setBool(\n key: string,\n value: boolean\n ): Promise<void> {\n const request = new gateway.DeviceSetStorageBoolRequest();\n request.setInterfaceId(this._axis.device.connection.interfaceId);\n request.setDevice(this._axis.device.deviceAddress);\n request.setAxis(this._axis.axisNumber);\n request.setKey(key);\n request.setValue(value);\n\n await gateway.callAsync('device/set_storage_bool', request);\n }\n\n /**\n * Gets the value at the provided key interpreted as a boolean.\n * @param key Key to get the value at.\n * @return Stored value.\n */\n public async getBool(\n key: string\n ): Promise<boolean> {\n const request = new gateway.DeviceSetStorageBoolRequest();\n request.setInterfaceId(this._axis.device.connection.interfaceId);\n request.setDevice(this._axis.device.deviceAddress);\n request.setAxis(this._axis.axisNumber);\n request.setKey(key);\n\n const response = await gateway.callAsync<gateway.DeviceGetStorageBoolResponse>(\n 'device/get_storage_bool',\n request,\n gateway.DeviceGetStorageBoolResponse);\n return response.getValue();\n }\n}\n\n/**\n * Class providing access to device storage.\n */\nexport class DeviceStorage {\n private _device: Device;\n\n constructor(device: Device) {\n this._device = device;\n }\n\n /**\n * Sets the device value stored at the provided key.\n * @param key Key to set the value at.\n * @param value Value to set.\n * @param encode Whether the stored value should be base64 encoded before being stored.\n * This makes the string unreadable to humans using the ASCII protocol,\n * however, values stored this way can be of any length and use non-ASCII and protocol reserved characters.\n */\n public async setString(\n key: string,\n value: string,\n encode: boolean = false\n ): Promise<void> {\n const request = new gateway.DeviceSetStorageRequest();\n request.setInterfaceId(this._device.connection.interfaceId);\n request.setDevice(this._device.deviceAddress);\n request.setKey(key);\n request.setValue(value);\n request.setEncode(encode);\n\n await gateway.callAsync('device/set_storage', request);\n }\n\n /**\n * Gets the device value stored with the provided key.\n * @param key Key to read the value of.\n * @param decode Whether the stored value should be decoded.\n * Only use this when reading values set by storage.set with \"encode\" true.\n * @return Stored value.\n */\n public async getString(\n key: string,\n decode: boolean = false\n ): Promise<string> {\n const request = new gateway.DeviceGetStorageRequest();\n request.setInterfaceId(this._device.connection.interfaceId);\n request.setDevice(this._device.deviceAddress);\n request.setKey(key);\n request.setDecode(decode);\n\n const response = await gateway.callAsync<gateway.DeviceGetStorageResponse>(\n 'device/get_storage',\n request,\n gateway.DeviceGetStorageResponse);\n return response.getValue();\n }\n\n /**\n * Sets the value at the provided key to the provided number.\n * @param key Key to set the value at.\n * @param value Value to set.\n */\n public async setNumber(\n key: string,\n value: number\n ): Promise<void> {\n const request = new gateway.DeviceSetStorageNumberRequest();\n request.setInterfaceId(this._device.connection.interfaceId);\n request.setDevice(this._device.deviceAddress);\n request.setKey(key);\n request.setValue(value);\n\n await gateway.callAsync('device/set_storage_number', request);\n }\n\n /**\n * Gets the value at the provided key interpreted as a number.\n * @param key Key to get the value at.\n * @return Stored value.\n */\n public async getNumber(\n key: string\n ): Promise<number> {\n const request = new gateway.DeviceSetStorageNumberRequest();\n request.setInterfaceId(this._device.connection.interfaceId);\n request.setDevice(this._device.deviceAddress);\n request.setKey(key);\n\n const response = await gateway.callAsync<gateway.DeviceGetStorageNumberResponse>(\n 'device/get_storage_number',\n request,\n gateway.DeviceGetStorageNumberResponse);\n return response.getValue();\n }\n\n /**\n * Sets the value at the provided key to the provided boolean.\n * @param key Key to set the value at.\n * @param value Value to set.\n */\n public async setBool(\n key: string,\n value: boolean\n ): Promise<void> {\n const request = new gateway.DeviceSetStorageBoolRequest();\n request.setInterfaceId(this._device.connection.interfaceId);\n request.setDevice(this._device.deviceAddress);\n request.setKey(key);\n request.setValue(value);\n\n await gateway.callAsync('device/set_storage_bool', request);\n }\n\n /**\n * Gets the value at the provided key interpreted as a boolean.\n * @param key Key to get the value at.\n * @return Stored value.\n */\n public async getBool(\n key: string\n ): Promise<boolean> {\n const request = new gateway.DeviceSetStorageBoolRequest();\n request.setInterfaceId(this._device.connection.interfaceId);\n request.setDevice(this._device.deviceAddress);\n request.setKey(key);\n\n const response = await gateway.callAsync<gateway.DeviceGetStorageBoolResponse>(\n 'device/get_storage_bool',\n request,\n gateway.DeviceGetStorageBoolResponse);\n return response.getValue();\n }\n}\n"]}
|
package/dist/lib/ascii_ns.d.ts
CHANGED
|
@@ -70,4 +70,8 @@ export declare namespace ascii {
|
|
|
70
70
|
type ServoTuningParam = asciiImport.ServoTuningParam;
|
|
71
71
|
const SimpleTuningParam: typeof asciiImport.SimpleTuningParam;
|
|
72
72
|
type SimpleTuningParam = asciiImport.SimpleTuningParam;
|
|
73
|
+
const AxisStorage: typeof asciiImport.AxisStorage;
|
|
74
|
+
type AxisStorage = asciiImport.AxisStorage;
|
|
75
|
+
const DeviceStorage: typeof asciiImport.DeviceStorage;
|
|
76
|
+
type DeviceStorage = asciiImport.DeviceStorage;
|
|
73
77
|
}
|
package/dist/lib/ascii_ns.js
CHANGED
|
@@ -58,5 +58,7 @@ var ascii;
|
|
|
58
58
|
ascii.PidTuning = asciiImport.PidTuning;
|
|
59
59
|
ascii.ServoTuningParam = asciiImport.ServoTuningParam;
|
|
60
60
|
ascii.SimpleTuningParam = asciiImport.SimpleTuningParam;
|
|
61
|
+
ascii.AxisStorage = asciiImport.AxisStorage;
|
|
62
|
+
ascii.DeviceStorage = asciiImport.DeviceStorage;
|
|
61
63
|
})(ascii = exports.ascii || (exports.ascii = {}));
|
|
62
64
|
//# sourceMappingURL=ascii_ns.js.map
|
package/dist/lib/ascii_ns.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ascii_ns.js","sourceRoot":"","sources":["../../src/ascii_ns.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,qDAAuC;AAEvC,IAAiB,KAAK,
|
|
1
|
+
{"version":3,"file":"ascii_ns.js","sourceRoot":"","sources":["../../src/ascii_ns.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,qDAAuC;AAEvC,IAAiB,KAAK,CA2ErB;AA3ED,WAAiB,KAAK;IACP,gBAAU,GAAG,WAAW,CAAC,UAAU,CAAC;IAEpC,aAAO,GAAG,WAAW,CAAC,OAAO,CAAC;IAE9B,UAAI,GAAG,WAAW,CAAC,IAAI,CAAC;IAExB,kBAAY,GAAG,WAAW,CAAC,YAAY,CAAC;IAExC,kBAAY,GAAG,WAAW,CAAC,YAAY,CAAC;IAExC,cAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC;IAEhC,gBAAU,GAAG,WAAW,CAAC,UAAU,CAAC;IAEpC,YAAM,GAAG,WAAW,CAAC,MAAM,CAAC;IAE5B,cAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC;IAEhC,kBAAY,GAAG,WAAW,CAAC,YAAY,CAAC;IAExC,oBAAc,GAAG,WAAW,CAAC,cAAc,CAAC;IAE5C,oBAAc,GAAG,WAAW,CAAC,cAAc,CAAC;IAE5C,cAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC;IAEhC,kBAAY,GAAG,WAAW,CAAC,YAAY,CAAC;IAExC,kBAAY,GAAG,WAAW,CAAC,YAAY,CAAC;IAExC,sBAAgB,GAAG,WAAW,CAAC,gBAAgB,CAAC;IAEhD,mCAA6B,GAAG,WAAW,CAAC,6BAA6B,CAAC;IAE1E,iBAAW,GAAG,WAAW,CAAC,WAAW,CAAC;IAEtC,cAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC;IAEhC,sBAAgB,GAAG,WAAW,CAAC,gBAAgB,CAAC;IAEhD,0BAAoB,GAAG,WAAW,CAAC,oBAAoB,CAAC;IAExD,cAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC;IAEhC,kBAAY,GAAG,WAAW,CAAC,YAAY,CAAC;IAExC,YAAM,GAAG,WAAW,CAAC,MAAM,CAAC;IAE5B,kBAAY,GAAG,WAAW,CAAC,YAAY,CAAC;IAExC,gBAAU,GAAG,WAAW,CAAC,UAAU,CAAC;IAEpC,oBAAc,GAAG,WAAW,CAAC,cAAc,CAAC;IAE5C,0BAAoB,GAAG,WAAW,CAAC,oBAAoB,CAAC;IAExD,eAAS,GAAG,WAAW,CAAC,SAAS,CAAC;IAElC,gBAAU,GAAG,WAAW,CAAC,UAAU,CAAC;IAEpC,yBAAmB,GAAG,WAAW,CAAC,mBAAmB,CAAC;IAEtD,kBAAY,GAAG,WAAW,CAAC,YAAY,CAAC;IAExC,eAAS,GAAG,WAAW,CAAC,SAAS,CAAC;IAElC,sBAAgB,GAAG,WAAW,CAAC,gBAAgB,CAAC;IAEhD,uBAAiB,GAAG,WAAW,CAAC,iBAAiB,CAAC;IAElD,iBAAW,GAAG,WAAW,CAAC,WAAW,CAAC;IAEtC,mBAAa,GAAG,WAAW,CAAC,aAAa,CAAC;AAEzD,CAAC,EA3EgB,KAAK,GAAL,aAAK,KAAL,aAAK,QA2ErB","sourcesContent":["import * as asciiImport from './ascii';\n\nexport namespace ascii {\n export const AlertEvent = asciiImport.AlertEvent;\n export type AlertEvent = asciiImport.AlertEvent;\n export const AllAxes = asciiImport.AllAxes;\n export type AllAxes = asciiImport.AllAxes;\n export const Axis = asciiImport.Axis;\n export type Axis = asciiImport.Axis;\n export const AxisIdentity = asciiImport.AxisIdentity;\n export type AxisIdentity = asciiImport.AxisIdentity;\n export const AxisSettings = asciiImport.AxisSettings;\n export type AxisSettings = asciiImport.AxisSettings;\n export const AxisType = asciiImport.AxisType;\n export type AxisType = asciiImport.AxisType;\n export const Connection = asciiImport.Connection;\n export type Connection = asciiImport.Connection;\n export const Device = asciiImport.Device;\n export type Device = asciiImport.Device;\n export const DeviceIO = asciiImport.DeviceIO;\n export type DeviceIO = asciiImport.DeviceIO;\n export const DeviceIOInfo = asciiImport.DeviceIOInfo;\n export type DeviceIOInfo = asciiImport.DeviceIOInfo;\n export const DeviceIdentity = asciiImport.DeviceIdentity;\n export type DeviceIdentity = asciiImport.DeviceIdentity;\n export const DeviceSettings = asciiImport.DeviceSettings;\n export type DeviceSettings = asciiImport.DeviceSettings;\n export const Lockstep = asciiImport.Lockstep;\n export type Lockstep = asciiImport.Lockstep;\n export const LockstepAxes = asciiImport.LockstepAxes;\n export type LockstepAxes = asciiImport.LockstepAxes;\n export const Oscilloscope = asciiImport.Oscilloscope;\n export type Oscilloscope = asciiImport.Oscilloscope;\n export const OscilloscopeData = asciiImport.OscilloscopeData;\n export type OscilloscopeData = asciiImport.OscilloscopeData;\n export const OscilloscopeCaptureProperties = asciiImport.OscilloscopeCaptureProperties;\n export type OscilloscopeCaptureProperties = asciiImport.OscilloscopeCaptureProperties;\n export const MessageType = asciiImport.MessageType;\n export type MessageType = asciiImport.MessageType;\n export const Response = asciiImport.Response;\n export type Response = asciiImport.Response;\n export const SettingConstants = asciiImport.SettingConstants;\n export type SettingConstants = asciiImport.SettingConstants;\n export const UnknownResponseEvent = asciiImport.UnknownResponseEvent;\n export type UnknownResponseEvent = asciiImport.UnknownResponseEvent;\n export const Warnings = asciiImport.Warnings;\n export type Warnings = asciiImport.Warnings;\n export const WarningFlags = asciiImport.WarningFlags;\n export type WarningFlags = asciiImport.WarningFlags;\n export const Stream = asciiImport.Stream;\n export type Stream = asciiImport.Stream;\n export const StreamBuffer = asciiImport.StreamBuffer;\n export type StreamBuffer = asciiImport.StreamBuffer;\n export const StreamMode = asciiImport.StreamMode;\n export type StreamMode = asciiImport.StreamMode;\n export const StreamAxisType = asciiImport.StreamAxisType;\n export type StreamAxisType = asciiImport.StreamAxisType;\n export const StreamAxisDefinition = asciiImport.StreamAxisDefinition;\n export type StreamAxisDefinition = asciiImport.StreamAxisDefinition;\n export const Transport = asciiImport.Transport;\n export type Transport = asciiImport.Transport;\n export const ServoTuner = asciiImport.ServoTuner;\n export type ServoTuner = asciiImport.ServoTuner;\n export const ServoTuningParamset = asciiImport.ServoTuningParamset;\n export type ServoTuningParamset = asciiImport.ServoTuningParamset;\n export const ParamsetInfo = asciiImport.ParamsetInfo;\n export type ParamsetInfo = asciiImport.ParamsetInfo;\n export const PidTuning = asciiImport.PidTuning;\n export type PidTuning = asciiImport.PidTuning;\n export const ServoTuningParam = asciiImport.ServoTuningParam;\n export type ServoTuningParam = asciiImport.ServoTuningParam;\n export const SimpleTuningParam = asciiImport.SimpleTuningParam;\n export type SimpleTuningParam = asciiImport.SimpleTuningParam;\n export const AxisStorage = asciiImport.AxisStorage;\n export type AxisStorage = asciiImport.AxisStorage;\n export const DeviceStorage = asciiImport.DeviceStorage;\n export type DeviceStorage = asciiImport.DeviceStorage;\n}\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { MotionLibException } from './motion_lib_exception';
|
|
3
|
+
import { CommandTooLongExceptionData } from './command_too_long_exception_data';
|
|
4
|
+
/**
|
|
5
|
+
* Thrown when a command is too long to be written by the ASCII protocol, even when continued across multiple lines.
|
|
6
|
+
*/
|
|
7
|
+
export declare class CommandTooLongException extends MotionLibException {
|
|
8
|
+
/**
|
|
9
|
+
* Additional data for CommandTooLongException
|
|
10
|
+
*/
|
|
11
|
+
get details(): CommandTooLongExceptionData;
|
|
12
|
+
private _details;
|
|
13
|
+
constructor(message: string, customData: Buffer | CommandTooLongExceptionData);
|
|
14
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //
|
|
3
|
+
// ============= DO NOT EDIT DIRECTLY ============= //
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.CommandTooLongException = void 0;
|
|
6
|
+
const motion_lib_exception_1 = require("./motion_lib_exception");
|
|
7
|
+
const main_pb_1 = require("../protobufs/main_pb");
|
|
8
|
+
const command_too_long_exception_data_1 = require("./command_too_long_exception_data");
|
|
9
|
+
/**
|
|
10
|
+
* Thrown when a command is too long to be written by the ASCII protocol, even when continued across multiple lines.
|
|
11
|
+
*/
|
|
12
|
+
class CommandTooLongException extends motion_lib_exception_1.MotionLibException {
|
|
13
|
+
constructor(message, customData) {
|
|
14
|
+
super(message);
|
|
15
|
+
Object.setPrototypeOf(this, CommandTooLongException.prototype);
|
|
16
|
+
if (Buffer.isBuffer(customData)) {
|
|
17
|
+
const protobufObj = main_pb_1.CommandTooLongExceptionData.deserializeBinary(customData);
|
|
18
|
+
this._details = command_too_long_exception_data_1.CommandTooLongExceptionData.fromProtobuf(protobufObj.toObject());
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
this._details = customData;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Additional data for CommandTooLongException
|
|
26
|
+
*/
|
|
27
|
+
get details() {
|
|
28
|
+
return this._details;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.CommandTooLongException = CommandTooLongException;
|
|
32
|
+
//# sourceMappingURL=command_too_long_exception.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command_too_long_exception.js","sourceRoot":"","sources":["../../../src/exceptions/command_too_long_exception.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD,iEAA4D;AAC5D,kDAAyF;AACzF,uFAAgF;AAEhF;;GAEG;AACH,MAAa,uBAAwB,SAAQ,yCAAkB;IAS7D,YACE,OAAe,EACf,UAAgD;QAEhD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,uBAAuB,CAAC,SAAS,CAAC,CAAC;QAE/D,IAAI,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE;YAC/B,MAAM,WAAW,GAAG,qCAAkB,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;YACrE,IAAI,CAAC,QAAQ,GAAG,6DAA2B,CAAC,YAAY,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;SAClF;aAAM;YACL,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC;SAC5B;IACH,CAAC;IArBD;;OAEG;IACH,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;CAiBF;AAvBD,0DAuBC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { MotionLibException } from './motion_lib_exception';\nimport { CommandTooLongExceptionData as CustomDataProtobuf } from '../protobufs/main_pb';\nimport { CommandTooLongExceptionData } from './command_too_long_exception_data';\n\n/**\n * Thrown when a command is too long to be written by the ASCII protocol, even when continued across multiple lines.\n */\nexport class CommandTooLongException extends MotionLibException {\n /**\n * Additional data for CommandTooLongException\n */\n public get details(): CommandTooLongExceptionData {\n return this._details;\n }\n private _details: CommandTooLongExceptionData;\n\n constructor(\n message: string,\n customData: Buffer | CommandTooLongExceptionData\n ) {\n super(message);\n Object.setPrototypeOf(this, CommandTooLongException.prototype);\n\n if (Buffer.isBuffer(customData)) {\n const protobufObj = CustomDataProtobuf.deserializeBinary(customData);\n this._details = CommandTooLongExceptionData.fromProtobuf(protobufObj.toObject());\n } else {\n this._details = customData;\n }\n }\n}\n"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Information describing why the command could not fit.
|
|
3
|
+
*/
|
|
4
|
+
export interface CommandTooLongExceptionData {
|
|
5
|
+
/**
|
|
6
|
+
* The part of the command that could be successfully fit in the space provided by the protocol.
|
|
7
|
+
*/
|
|
8
|
+
fit: string;
|
|
9
|
+
/**
|
|
10
|
+
* The part of the command that could not fit within the space provided.
|
|
11
|
+
*/
|
|
12
|
+
remainder: string;
|
|
13
|
+
/**
|
|
14
|
+
* The length of the ascii string that can be written to a single line.
|
|
15
|
+
*/
|
|
16
|
+
packetSize: number;
|
|
17
|
+
/**
|
|
18
|
+
* The number of lines a command can be split over using continuations.
|
|
19
|
+
*/
|
|
20
|
+
packetsMax: number;
|
|
21
|
+
}
|
|
22
|
+
export declare namespace CommandTooLongExceptionData {
|
|
23
|
+
const __type = "CommandTooLongExceptionData";
|
|
24
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //
|
|
3
|
+
// ============= DO NOT EDIT DIRECTLY ============= //
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.CommandTooLongExceptionData = void 0;
|
|
6
|
+
var CommandTooLongExceptionData;
|
|
7
|
+
(function (CommandTooLongExceptionData) {
|
|
8
|
+
CommandTooLongExceptionData.__type = 'CommandTooLongExceptionData';
|
|
9
|
+
/** @internal */
|
|
10
|
+
function fromProtobuf(pbData) {
|
|
11
|
+
return {
|
|
12
|
+
fit: pbData.fit,
|
|
13
|
+
remainder: pbData.remainder,
|
|
14
|
+
packetSize: pbData.packetSize,
|
|
15
|
+
packetsMax: pbData.packetsMax,
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
CommandTooLongExceptionData.fromProtobuf = fromProtobuf;
|
|
19
|
+
})(CommandTooLongExceptionData = exports.CommandTooLongExceptionData || (exports.CommandTooLongExceptionData = {}));
|
|
20
|
+
//# sourceMappingURL=command_too_long_exception_data.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command_too_long_exception_data.js","sourceRoot":"","sources":["../../../src/exceptions/command_too_long_exception_data.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AA8BtD,IAAiB,2BAA2B,CAY3C;AAZD,WAAiB,2BAA2B;IAC7B,kCAAM,GAAG,6BAA6B,CAAC;IAEpD,gBAAgB;IAChB,SAAgB,YAAY,CAAC,MAAoD;QAC/E,OAAO;YACL,GAAG,EAAE,MAAM,CAAC,GAAG;YACf,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,UAAU,EAAE,MAAM,CAAC,UAAU;YAC7B,UAAU,EAAE,MAAM,CAAC,UAAU;SAC9B,CAAC;IACJ,CAAC;IAPe,wCAAY,eAO3B,CAAA;AACH,CAAC,EAZgB,2BAA2B,GAA3B,mCAA2B,KAA3B,mCAA2B,QAY3C","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\n\n/**\n * Information describing why the command could not fit.\n */\nexport interface CommandTooLongExceptionData {\n /**\n * The part of the command that could be successfully fit in the space provided by the protocol.\n */\n fit: string;\n\n /**\n * The part of the command that could not fit within the space provided.\n */\n remainder: string;\n\n /**\n * The length of the ascii string that can be written to a single line.\n */\n packetSize: number;\n\n /**\n * The number of lines a command can be split over using continuations.\n */\n packetsMax: number;\n\n}\n\nexport namespace CommandTooLongExceptionData {\n export const __type = 'CommandTooLongExceptionData';\n\n /** @internal */\n export function fromProtobuf(pbData: gateway.CommandTooLongExceptionData.AsObject): CommandTooLongExceptionData {\n return {\n fit: pbData.fit,\n remainder: pbData.remainder,\n packetSize: pbData.packetSize,\n packetsMax: pbData.packetsMax,\n };\n }\n}\n"]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { BinaryCommandFailedException } from './binary_command_failed_exception';
|
|
2
2
|
export { CommandFailedException } from './command_failed_exception';
|
|
3
3
|
export { CommandPreemptedException } from './command_preempted_exception';
|
|
4
|
+
export { CommandTooLongException } from './command_too_long_exception';
|
|
4
5
|
export { ConnectionClosedException } from './connection_closed_exception';
|
|
5
6
|
export { ConnectionFailedException } from './connection_failed_exception';
|
|
6
7
|
export { ConversionFailedException } from './conversion_failed_exception';
|
|
@@ -25,6 +26,7 @@ export { LockstepNotEnabledException } from './lockstep_not_enabled_exception';
|
|
|
25
26
|
export { MovementFailedException } from './movement_failed_exception';
|
|
26
27
|
export { MovementInterruptedException } from './movement_interrupted_exception';
|
|
27
28
|
export { NoDeviceFoundException } from './no_device_found_exception';
|
|
29
|
+
export { NoValueForKeyException } from './no_value_for_key_exception';
|
|
28
30
|
export { NotSupportedException } from './not_supported_exception';
|
|
29
31
|
export { OsFailedException } from './os_failed_exception';
|
|
30
32
|
export { OutOfRequestIdsException } from './out_of_request_ids_exception';
|
|
@@ -43,6 +45,7 @@ export { UnknownRequestException } from './unknown_request_exception';
|
|
|
43
45
|
export { MotionLibException } from './motion_lib_exception';
|
|
44
46
|
export { BinaryCommandFailedExceptionData } from './binary_command_failed_exception_data';
|
|
45
47
|
export { CommandFailedExceptionData } from './command_failed_exception_data';
|
|
48
|
+
export { CommandTooLongExceptionData } from './command_too_long_exception_data';
|
|
46
49
|
export { DeviceAddressConflictExceptionData } from './device_address_conflict_exception_data';
|
|
47
50
|
export { GCodeExecutionExceptionData } from './g_code_execution_exception_data';
|
|
48
51
|
export { GCodeSyntaxExceptionData } from './g_code_syntax_exception_data';
|
|
@@ -2,14 +2,16 @@
|
|
|
2
2
|
// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //
|
|
3
3
|
// ============= DO NOT EDIT DIRECTLY ============= //
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.
|
|
6
|
-
exports.StreamMovementInterruptedExceptionData = exports.StreamMovementFailedExceptionData = exports.StreamExecutionExceptionData = exports.SetPeripheralStateExceptionData = exports.SetDeviceStateExceptionData = exports.MovementInterruptedExceptionData = exports.MovementFailedExceptionData = void 0;
|
|
5
|
+
exports.GCodeExecutionExceptionData = exports.DeviceAddressConflictExceptionData = exports.CommandTooLongExceptionData = exports.CommandFailedExceptionData = exports.BinaryCommandFailedExceptionData = exports.MotionLibException = exports.UnknownRequestException = exports.TransportAlreadyUsedException = exports.StreamSetupFailedException = exports.StreamMovementInterruptedException = exports.StreamMovementFailedException = exports.StreamModeException = exports.StreamExecutionException = exports.SettingNotFoundException = exports.SetPeripheralStateFailedException = exports.SetDeviceStateFailedException = exports.SerialPortBusyException = exports.RequestTimeoutException = exports.OutOfRequestIdsException = exports.OsFailedException = exports.NotSupportedException = exports.NoValueForKeyException = exports.NoDeviceFoundException = exports.MovementInterruptedException = exports.MovementFailedException = exports.LockstepNotEnabledException = exports.LockstepEnabledException = exports.IoFailedException = exports.IoChannelOutOfRangeException = exports.InvalidResponseException = exports.InvalidParkStateException = exports.InvalidPacketException = exports.InvalidOperationException = exports.InvalidDataException = exports.InvalidArgumentException = exports.InternalErrorException = exports.GCodeSyntaxException = exports.GCodeExecutionException = exports.DeviceNotIdentifiedException = exports.DeviceFailedException = exports.DeviceDbFailedException = exports.DeviceBusyException = exports.DeviceAddressConflictException = exports.ConversionFailedException = exports.ConnectionFailedException = exports.ConnectionClosedException = exports.CommandTooLongException = exports.CommandPreemptedException = exports.CommandFailedException = exports.BinaryCommandFailedException = void 0;
|
|
6
|
+
exports.StreamMovementInterruptedExceptionData = exports.StreamMovementFailedExceptionData = exports.StreamExecutionExceptionData = exports.SetPeripheralStateExceptionData = exports.SetDeviceStateExceptionData = exports.MovementInterruptedExceptionData = exports.MovementFailedExceptionData = exports.InvalidResponseExceptionData = exports.InvalidPacketExceptionData = exports.GCodeSyntaxExceptionData = void 0;
|
|
7
7
|
var binary_command_failed_exception_1 = require("./binary_command_failed_exception");
|
|
8
8
|
Object.defineProperty(exports, "BinaryCommandFailedException", { enumerable: true, get: function () { return binary_command_failed_exception_1.BinaryCommandFailedException; } });
|
|
9
9
|
var command_failed_exception_1 = require("./command_failed_exception");
|
|
10
10
|
Object.defineProperty(exports, "CommandFailedException", { enumerable: true, get: function () { return command_failed_exception_1.CommandFailedException; } });
|
|
11
11
|
var command_preempted_exception_1 = require("./command_preempted_exception");
|
|
12
12
|
Object.defineProperty(exports, "CommandPreemptedException", { enumerable: true, get: function () { return command_preempted_exception_1.CommandPreemptedException; } });
|
|
13
|
+
var command_too_long_exception_1 = require("./command_too_long_exception");
|
|
14
|
+
Object.defineProperty(exports, "CommandTooLongException", { enumerable: true, get: function () { return command_too_long_exception_1.CommandTooLongException; } });
|
|
13
15
|
var connection_closed_exception_1 = require("./connection_closed_exception");
|
|
14
16
|
Object.defineProperty(exports, "ConnectionClosedException", { enumerable: true, get: function () { return connection_closed_exception_1.ConnectionClosedException; } });
|
|
15
17
|
var connection_failed_exception_1 = require("./connection_failed_exception");
|
|
@@ -58,6 +60,8 @@ var movement_interrupted_exception_1 = require("./movement_interrupted_exception
|
|
|
58
60
|
Object.defineProperty(exports, "MovementInterruptedException", { enumerable: true, get: function () { return movement_interrupted_exception_1.MovementInterruptedException; } });
|
|
59
61
|
var no_device_found_exception_1 = require("./no_device_found_exception");
|
|
60
62
|
Object.defineProperty(exports, "NoDeviceFoundException", { enumerable: true, get: function () { return no_device_found_exception_1.NoDeviceFoundException; } });
|
|
63
|
+
var no_value_for_key_exception_1 = require("./no_value_for_key_exception");
|
|
64
|
+
Object.defineProperty(exports, "NoValueForKeyException", { enumerable: true, get: function () { return no_value_for_key_exception_1.NoValueForKeyException; } });
|
|
61
65
|
var not_supported_exception_1 = require("./not_supported_exception");
|
|
62
66
|
Object.defineProperty(exports, "NotSupportedException", { enumerable: true, get: function () { return not_supported_exception_1.NotSupportedException; } });
|
|
63
67
|
var os_failed_exception_1 = require("./os_failed_exception");
|
|
@@ -94,6 +98,8 @@ var binary_command_failed_exception_data_1 = require("./binary_command_failed_ex
|
|
|
94
98
|
Object.defineProperty(exports, "BinaryCommandFailedExceptionData", { enumerable: true, get: function () { return binary_command_failed_exception_data_1.BinaryCommandFailedExceptionData; } });
|
|
95
99
|
var command_failed_exception_data_1 = require("./command_failed_exception_data");
|
|
96
100
|
Object.defineProperty(exports, "CommandFailedExceptionData", { enumerable: true, get: function () { return command_failed_exception_data_1.CommandFailedExceptionData; } });
|
|
101
|
+
var command_too_long_exception_data_1 = require("./command_too_long_exception_data");
|
|
102
|
+
Object.defineProperty(exports, "CommandTooLongExceptionData", { enumerable: true, get: function () { return command_too_long_exception_data_1.CommandTooLongExceptionData; } });
|
|
97
103
|
var device_address_conflict_exception_data_1 = require("./device_address_conflict_exception_data");
|
|
98
104
|
Object.defineProperty(exports, "DeviceAddressConflictExceptionData", { enumerable: true, get: function () { return device_address_conflict_exception_data_1.DeviceAddressConflictExceptionData; } });
|
|
99
105
|
var g_code_execution_exception_data_1 = require("./g_code_execution_exception_data");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/exceptions/index.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;AAEtD,qFAAiF;AAAxE,+IAAA,4BAA4B,OAAA;AACrC,uEAAoE;AAA3D,kIAAA,sBAAsB,OAAA;AAC/B,6EAA0E;AAAjE,wIAAA,yBAAyB,OAAA;AAClC,6EAA0E;AAAjE,wIAAA,yBAAyB,OAAA;AAClC,6EAA0E;AAAjE,wIAAA,yBAAyB,OAAA;AAClC,6EAA0E;AAAjE,wIAAA,yBAAyB,OAAA;AAClC,yFAAqF;AAA5E,mJAAA,8BAA8B,OAAA;AACvC,iEAA8D;AAArD,4HAAA,mBAAmB,OAAA;AAC5B,2EAAuE;AAA9D,qIAAA,uBAAuB,OAAA;AAChC,qEAAkE;AAAzD,gIAAA,qBAAqB,OAAA;AAC9B,qFAAiF;AAAxE,+IAAA,4BAA4B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C3C,iFAA6E;AAApE,2IAAA,0BAA0B,OAAA;AACnC,uFAAmF;AAA1E,iJAAA,6BAA6B,OAAA;AACtC,yEAAsE;AAA7D,oIAAA,uBAAuB,OAAA;AAChC,+DAA4D;AAAnD,0HAAA,kBAAkB,OAAA;AAE3B,+FAA0F;AAAjF,wJAAA,gCAAgC,OAAA;AACzC,iFAA6E;AAApE,2IAAA,0BAA0B,OAAA;AACnC,mGAA8F;AAArF,4JAAA,kCAAkC,OAAA;AAC3C,qFAAgF;AAAvE,8IAAA,2BAA2B,OAAA;AACpC,+EAA0E;AAAjE,wIAAA,wBAAwB,OAAA;AACjC,iFAA6E;AAApE,2IAAA,0BAA0B,OAAA;AACnC,qFAAiF;AAAxE,+IAAA,4BAA4B,OAAA;AACrC,mFAA+E;AAAtE,6IAAA,2BAA2B,OAAA;AACpC,6FAAyF;AAAhF,uJAAA,gCAAgC,OAAA;AACzC,qFAAgF;AAAvE,8IAAA,2BAA2B,OAAA;AACpC,6FAAwF;AAA/E,sJAAA,+BAA+B,OAAA;AACxC,qFAAiF;AAAxE,+IAAA,4BAA4B,OAAA;AACrC,iGAA4F;AAAnF,0JAAA,iCAAiC,OAAA;AAC1C,2GAAsG;AAA7F,oKAAA,sCAAsC,OAAA","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nexport { BinaryCommandFailedException } from './binary_command_failed_exception';\nexport { CommandFailedException } from './command_failed_exception';\nexport { CommandPreemptedException } from './command_preempted_exception';\nexport { ConnectionClosedException } from './connection_closed_exception';\nexport { ConnectionFailedException } from './connection_failed_exception';\nexport { ConversionFailedException } from './conversion_failed_exception';\nexport { DeviceAddressConflictException } from './device_address_conflict_exception';\nexport { DeviceBusyException } from './device_busy_exception';\nexport { DeviceDbFailedException } from './device_db_failed_exception';\nexport { DeviceFailedException } from './device_failed_exception';\nexport { DeviceNotIdentifiedException } from './device_not_identified_exception';\nexport { GCodeExecutionException } from './g_code_execution_exception';\nexport { GCodeSyntaxException } from './g_code_syntax_exception';\nexport { InternalErrorException } from './internal_error_exception';\nexport { InvalidArgumentException } from './invalid_argument_exception';\nexport { InvalidDataException } from './invalid_data_exception';\nexport { InvalidOperationException } from './invalid_operation_exception';\nexport { InvalidPacketException } from './invalid_packet_exception';\nexport { InvalidParkStateException } from './invalid_park_state_exception';\nexport { InvalidResponseException } from './invalid_response_exception';\nexport { IoChannelOutOfRangeException } from './io_channel_out_of_range_exception';\nexport { IoFailedException } from './io_failed_exception';\nexport { LockstepEnabledException } from './lockstep_enabled_exception';\nexport { LockstepNotEnabledException } from './lockstep_not_enabled_exception';\nexport { MovementFailedException } from './movement_failed_exception';\nexport { MovementInterruptedException } from './movement_interrupted_exception';\nexport { NoDeviceFoundException } from './no_device_found_exception';\nexport { NotSupportedException } from './not_supported_exception';\nexport { OsFailedException } from './os_failed_exception';\nexport { OutOfRequestIdsException } from './out_of_request_ids_exception';\nexport { RequestTimeoutException } from './request_timeout_exception';\nexport { SerialPortBusyException } from './serial_port_busy_exception';\nexport { SetDeviceStateFailedException } from './set_device_state_failed_exception';\nexport { SetPeripheralStateFailedException } from './set_peripheral_state_failed_exception';\nexport { SettingNotFoundException } from './setting_not_found_exception';\nexport { StreamExecutionException } from './stream_execution_exception';\nexport { StreamModeException } from './stream_mode_exception';\nexport { StreamMovementFailedException } from './stream_movement_failed_exception';\nexport { StreamMovementInterruptedException } from './stream_movement_interrupted_exception';\nexport { StreamSetupFailedException } from './stream_setup_failed_exception';\nexport { TransportAlreadyUsedException } from './transport_already_used_exception';\nexport { UnknownRequestException } from './unknown_request_exception';\nexport { MotionLibException } from './motion_lib_exception';\n\nexport { BinaryCommandFailedExceptionData } from './binary_command_failed_exception_data';\nexport { CommandFailedExceptionData } from './command_failed_exception_data';\nexport { DeviceAddressConflictExceptionData } from './device_address_conflict_exception_data';\nexport { GCodeExecutionExceptionData } from './g_code_execution_exception_data';\nexport { GCodeSyntaxExceptionData } from './g_code_syntax_exception_data';\nexport { InvalidPacketExceptionData } from './invalid_packet_exception_data';\nexport { InvalidResponseExceptionData } from './invalid_response_exception_data';\nexport { MovementFailedExceptionData } from './movement_failed_exception_data';\nexport { MovementInterruptedExceptionData } from './movement_interrupted_exception_data';\nexport { SetDeviceStateExceptionData } from './set_device_state_exception_data';\nexport { SetPeripheralStateExceptionData } from './set_peripheral_state_exception_data';\nexport { StreamExecutionExceptionData } from './stream_execution_exception_data';\nexport { StreamMovementFailedExceptionData } from './stream_movement_failed_exception_data';\nexport { StreamMovementInterruptedExceptionData } from './stream_movement_interrupted_exception_data';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/exceptions/index.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;AAEtD,qFAAiF;AAAxE,+IAAA,4BAA4B,OAAA;AACrC,uEAAoE;AAA3D,kIAAA,sBAAsB,OAAA;AAC/B,6EAA0E;AAAjE,wIAAA,yBAAyB,OAAA;AAClC,2EAAuE;AAA9D,qIAAA,uBAAuB,OAAA;AAChC,6EAA0E;AAAjE,wIAAA,yBAAyB,OAAA;AAClC,6EAA0E;AAAjE,wIAAA,yBAAyB,OAAA;AAClC,6EAA0E;AAAjE,wIAAA,yBAAyB,OAAA;AAClC,yFAAqF;AAA5E,mJAAA,8BAA8B,OAAA;AACvC,iEAA8D;AAArD,4HAAA,mBAAmB,OAAA;AAC5B,2EAAuE;AAA9D,qIAAA,uBAAuB,OAAA;AAChC,qEAAkE;AAAzD,gIAAA,qBAAqB,OAAA;AAC9B,qFAAiF;AAAxE,+IAAA,4BAA4B,OAAA;AACrC,2EAAuE;AAA9D,qIAAA,uBAAuB,OAAA;AAChC,qEAAiE;AAAxD,+HAAA,oBAAoB,OAAA;AAC7B,uEAAoE;AAA3D,kIAAA,sBAAsB,OAAA;AAC/B,2EAAwE;AAA/D,sIAAA,wBAAwB,OAAA;AACjC,mEAAgE;AAAvD,8HAAA,oBAAoB,OAAA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AA0F;AAAjF,wJAAA,gCAAgC,OAAA;AACzC,iFAA6E;AAApE,2IAAA,0BAA0B,OAAA;AACnC,qFAAgF;AAAvE,8IAAA,2BAA2B,OAAA;AACpC,mGAA8F;AAArF,4JAAA,kCAAkC,OAAA;AAC3C,qFAAgF;AAAvE,8IAAA,2BAA2B,OAAA;AACpC,+EAA0E;AAAjE,wIAAA,wBAAwB,OAAA;AACjC,iFAA6E;AAApE,2IAAA,0BAA0B,OAAA;AACnC,qFAAiF;AAAxE,+IAAA,4BAA4B,OAAA;AACrC,mFAA+E;AAAtE,6IAAA,2BAA2B,OAAA;AACpC,6FAAyF;AAAhF,uJAAA,gCAAgC,OAAA;AACzC,qFAAgF;AAAvE,8IAAA,2BAA2B,OAAA;AACpC,6FAAwF;AAA/E,sJAAA,+BAA+B,OAAA;AACxC,qFAAiF;AAAxE,+IAAA,4BAA4B,OAAA;AACrC,iGAA4F;AAAnF,0JAAA,iCAAiC,OAAA;AAC1C,2GAAsG;AAA7F,oKAAA,sCAAsC,OAAA","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nexport { BinaryCommandFailedException } from './binary_command_failed_exception';\nexport { CommandFailedException } from './command_failed_exception';\nexport { CommandPreemptedException } from './command_preempted_exception';\nexport { CommandTooLongException } from './command_too_long_exception';\nexport { ConnectionClosedException } from './connection_closed_exception';\nexport { ConnectionFailedException } from './connection_failed_exception';\nexport { ConversionFailedException } from './conversion_failed_exception';\nexport { DeviceAddressConflictException } from './device_address_conflict_exception';\nexport { DeviceBusyException } from './device_busy_exception';\nexport { DeviceDbFailedException } from './device_db_failed_exception';\nexport { DeviceFailedException } from './device_failed_exception';\nexport { DeviceNotIdentifiedException } from './device_not_identified_exception';\nexport { GCodeExecutionException } from './g_code_execution_exception';\nexport { GCodeSyntaxException } from './g_code_syntax_exception';\nexport { InternalErrorException } from './internal_error_exception';\nexport { InvalidArgumentException } from './invalid_argument_exception';\nexport { InvalidDataException } from './invalid_data_exception';\nexport { InvalidOperationException } from './invalid_operation_exception';\nexport { InvalidPacketException } from './invalid_packet_exception';\nexport { InvalidParkStateException } from './invalid_park_state_exception';\nexport { InvalidResponseException } from './invalid_response_exception';\nexport { IoChannelOutOfRangeException } from './io_channel_out_of_range_exception';\nexport { IoFailedException } from './io_failed_exception';\nexport { LockstepEnabledException } from './lockstep_enabled_exception';\nexport { LockstepNotEnabledException } from './lockstep_not_enabled_exception';\nexport { MovementFailedException } from './movement_failed_exception';\nexport { MovementInterruptedException } from './movement_interrupted_exception';\nexport { NoDeviceFoundException } from './no_device_found_exception';\nexport { NoValueForKeyException } from './no_value_for_key_exception';\nexport { NotSupportedException } from './not_supported_exception';\nexport { OsFailedException } from './os_failed_exception';\nexport { OutOfRequestIdsException } from './out_of_request_ids_exception';\nexport { RequestTimeoutException } from './request_timeout_exception';\nexport { SerialPortBusyException } from './serial_port_busy_exception';\nexport { SetDeviceStateFailedException } from './set_device_state_failed_exception';\nexport { SetPeripheralStateFailedException } from './set_peripheral_state_failed_exception';\nexport { SettingNotFoundException } from './setting_not_found_exception';\nexport { StreamExecutionException } from './stream_execution_exception';\nexport { StreamModeException } from './stream_mode_exception';\nexport { StreamMovementFailedException } from './stream_movement_failed_exception';\nexport { StreamMovementInterruptedException } from './stream_movement_interrupted_exception';\nexport { StreamSetupFailedException } from './stream_setup_failed_exception';\nexport { TransportAlreadyUsedException } from './transport_already_used_exception';\nexport { UnknownRequestException } from './unknown_request_exception';\nexport { MotionLibException } from './motion_lib_exception';\n\nexport { BinaryCommandFailedExceptionData } from './binary_command_failed_exception_data';\nexport { CommandFailedExceptionData } from './command_failed_exception_data';\nexport { CommandTooLongExceptionData } from './command_too_long_exception_data';\nexport { DeviceAddressConflictExceptionData } from './device_address_conflict_exception_data';\nexport { GCodeExecutionExceptionData } from './g_code_execution_exception_data';\nexport { GCodeSyntaxExceptionData } from './g_code_syntax_exception_data';\nexport { InvalidPacketExceptionData } from './invalid_packet_exception_data';\nexport { InvalidResponseExceptionData } from './invalid_response_exception_data';\nexport { MovementFailedExceptionData } from './movement_failed_exception_data';\nexport { MovementInterruptedExceptionData } from './movement_interrupted_exception_data';\nexport { SetDeviceStateExceptionData } from './set_device_state_exception_data';\nexport { SetPeripheralStateExceptionData } from './set_peripheral_state_exception_data';\nexport { StreamExecutionExceptionData } from './stream_execution_exception_data';\nexport { StreamMovementFailedExceptionData } from './stream_movement_failed_exception_data';\nexport { StreamMovementInterruptedExceptionData } from './stream_movement_interrupted_exception_data';\n"]}
|