@espressif/rainmaker-neo-base-sdk 1.0.0 → 1.2.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 +1 -1
- package/README.md +40 -4
- package/dist/cjs/ESPDevice.js +6 -0
- package/dist/cjs/ESPDevice.js.map +1 -1
- package/dist/cjs/ESPRMNeoBase.js +1 -1
- package/dist/cjs/ESPRMNeoNode.js +33 -14
- package/dist/cjs/ESPRMNeoNode.js.map +1 -1
- package/dist/cjs/index.js +14 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/methods/ESPDevice/Provision.js +7 -0
- package/dist/cjs/methods/ESPDevice/Provision.js.map +1 -1
- package/dist/cjs/methods/ESPDevice/ResetWifiStatus.js +26 -0
- package/dist/cjs/methods/ESPDevice/ResetWifiStatus.js.map +1 -0
- package/dist/cjs/methods/ESPDevice/RetryNetworkCredentials.js +46 -0
- package/dist/cjs/methods/ESPDevice/RetryNetworkCredentials.js.map +1 -0
- package/dist/cjs/methods/ESPRMNeoNode/Sync.js +4 -1
- package/dist/cjs/methods/ESPRMNeoNode/Sync.js.map +1 -1
- package/dist/cjs/methods/ESPRMNeoUser/MQTT/AssumeRole.js +8 -9
- package/dist/cjs/methods/ESPRMNeoUser/MQTT/AssumeRole.js.map +1 -1
- package/dist/cjs/proto/esp_rmaker_chal_resp.js +5 -0
- package/dist/cjs/proto/esp_rmaker_chal_resp.js.map +1 -1
- package/dist/cjs/proto/rmaker_local_ctrl.js +273 -0
- package/dist/cjs/proto/rmaker_local_ctrl.js.map +1 -0
- package/dist/cjs/services/ESPRMNeoMqtt/ESPRMNeoMqtt.js +13 -0
- package/dist/cjs/services/ESPRMNeoMqtt/ESPRMNeoMqtt.js.map +1 -1
- package/dist/cjs/services/ESPTransport/ESPDiscovery/ESPDiscoveryManager.js +5 -4
- package/dist/cjs/services/ESPTransport/ESPDiscovery/ESPDiscoveryManager.js.map +1 -1
- package/dist/cjs/services/ESPTransport/ESPLocalControlTransport.js +183 -116
- package/dist/cjs/services/ESPTransport/ESPLocalControlTransport.js.map +1 -1
- package/dist/cjs/services/ESPTransport/LocalControlSession.js +62 -0
- package/dist/cjs/services/ESPTransport/LocalControlSession.js.map +1 -0
- package/dist/cjs/services/NodeMQTTOrchestrator.js +2 -5
- package/dist/cjs/services/NodeMQTTOrchestrator.js.map +1 -1
- package/dist/cjs/types/transport.js +24 -0
- package/dist/cjs/types/transport.js.map +1 -1
- package/dist/cjs/utils/constants.js +80 -4
- package/dist/cjs/utils/constants.js.map +1 -1
- package/dist/cjs/utils/eventSubscriptionUtils.js +48 -4
- package/dist/cjs/utils/eventSubscriptionUtils.js.map +1 -1
- package/dist/cjs/utils/nodeUtils.js +12 -1
- package/dist/cjs/utils/nodeUtils.js.map +1 -1
- package/dist/cjs/utils/waitForNodeOnline.js +7 -6
- package/dist/cjs/utils/waitForNodeOnline.js.map +1 -1
- package/dist/esm/ESPDevice.js +6 -0
- package/dist/esm/ESPDevice.js.map +1 -1
- package/dist/esm/ESPRMNeoBase.js +1 -1
- package/dist/esm/ESPRMNeoNode.js +33 -14
- package/dist/esm/ESPRMNeoNode.js.map +1 -1
- package/dist/esm/index.js +4 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/methods/ESPDevice/Provision.js +7 -0
- package/dist/esm/methods/ESPDevice/Provision.js.map +1 -1
- package/dist/esm/methods/ESPDevice/ResetWifiStatus.js +24 -0
- package/dist/esm/methods/ESPDevice/ResetWifiStatus.js.map +1 -0
- package/dist/esm/methods/ESPDevice/RetryNetworkCredentials.js +44 -0
- package/dist/esm/methods/ESPDevice/RetryNetworkCredentials.js.map +1 -0
- package/dist/esm/methods/ESPRMNeoNode/Sync.js +4 -1
- package/dist/esm/methods/ESPRMNeoNode/Sync.js.map +1 -1
- package/dist/esm/methods/ESPRMNeoUser/MQTT/AssumeRole.js +9 -10
- package/dist/esm/methods/ESPRMNeoUser/MQTT/AssumeRole.js.map +1 -1
- package/dist/esm/proto/esp_rmaker_chal_resp.js +5 -0
- package/dist/esm/proto/esp_rmaker_chal_resp.js.map +1 -1
- package/dist/esm/proto/rmaker_local_ctrl.js +271 -0
- package/dist/esm/proto/rmaker_local_ctrl.js.map +1 -0
- package/dist/esm/services/ESPRMNeoMqtt/ESPRMNeoMqtt.js +13 -0
- package/dist/esm/services/ESPRMNeoMqtt/ESPRMNeoMqtt.js.map +1 -1
- package/dist/esm/services/ESPTransport/ESPDiscovery/ESPDiscoveryManager.js +5 -4
- package/dist/esm/services/ESPTransport/ESPDiscovery/ESPDiscoveryManager.js.map +1 -1
- package/dist/esm/services/ESPTransport/ESPLocalControlTransport.js +184 -117
- package/dist/esm/services/ESPTransport/ESPLocalControlTransport.js.map +1 -1
- package/dist/esm/services/ESPTransport/LocalControlSession.js +59 -0
- package/dist/esm/services/ESPTransport/LocalControlSession.js.map +1 -0
- package/dist/esm/services/NodeMQTTOrchestrator.js +2 -5
- package/dist/esm/services/NodeMQTTOrchestrator.js.map +1 -1
- package/dist/esm/types/transport.js +24 -1
- package/dist/esm/types/transport.js.map +1 -1
- package/dist/esm/utils/constants.js +74 -5
- package/dist/esm/utils/constants.js.map +1 -1
- package/dist/esm/utils/eventSubscriptionUtils.js +49 -5
- package/dist/esm/utils/eventSubscriptionUtils.js.map +1 -1
- package/dist/esm/utils/nodeUtils.js +12 -1
- package/dist/esm/utils/nodeUtils.js.map +1 -1
- package/dist/esm/utils/waitForNodeOnline.js +7 -6
- package/dist/esm/utils/waitForNodeOnline.js.map +1 -1
- package/dist/types/ESPDevice.d.ts +10 -0
- package/dist/types/ESPRMNeoBase.d.ts +1 -1
- package/dist/types/ESPRMNeoNode.d.ts +17 -5
- package/dist/types/methods/ESPDevice/ResetWifiStatus.d.ts +18 -0
- package/dist/types/methods/ESPDevice/RetryNetworkCredentials.d.ts +22 -0
- package/dist/types/methods/ESPDevice/index.d.ts +2 -0
- package/dist/types/methods/ESPRMNeoUser/MQTT/AssumeRole.d.ts +25 -15
- package/dist/types/proto/rmaker_local_ctrl.d.ts +137 -0
- package/dist/types/services/ESPRMNeoMqtt/ESPRMNeoMqtt.d.ts +10 -0
- package/dist/types/services/ESPTransport/ESPDiscovery/ESPDiscoveryManager.d.ts +4 -3
- package/dist/types/services/ESPTransport/ESPLocalControlTransport.d.ts +70 -23
- package/dist/types/services/ESPTransport/LocalControlSession.d.ts +24 -0
- package/dist/types/services/NodeMQTTOrchestrator.d.ts +2 -2
- package/dist/types/services/interfaces/MQTTTransport.d.ts +10 -0
- package/dist/types/types/discovery.d.ts +1 -1
- package/dist/types/types/localControl.d.ts +26 -1
- package/dist/types/types/provision.d.ts +10 -0
- package/dist/types/types/transport.d.ts +24 -2
- package/dist/types/utils/baseUtils.d.ts +1 -1
- package/dist/types/utils/constants.d.ts +74 -5
- package/dist/types/utils/eventSubscriptionUtils.d.ts +19 -3
- package/dist/types/utils/waitForNodeOnline.d.ts +9 -3
- package/package.json +1 -1
- package/dist/cjs/proto/constants.js +0 -24
- package/dist/cjs/proto/constants.js.map +0 -1
- package/dist/cjs/proto/esp_local_ctrl.js +0 -787
- package/dist/cjs/proto/esp_local_ctrl.js.map +0 -1
- package/dist/esm/proto/constants.js +0 -24
- package/dist/esm/proto/constants.js.map +0 -1
- package/dist/esm/proto/esp_local_ctrl.js +0 -758
- package/dist/esm/proto/esp_local_ctrl.js.map +0 -1
- package/dist/types/proto/constants.d.ts +0 -15
- package/dist/types/proto/esp_local_ctrl.d.ts +0 -283
|
@@ -1,787 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var constants = require('./constants.js');
|
|
4
|
-
var pb_1 = require('google-protobuf');
|
|
5
|
-
|
|
6
|
-
function _interopNamespaceDefault(e) {
|
|
7
|
-
var n = Object.create(null);
|
|
8
|
-
if (e) {
|
|
9
|
-
Object.keys(e).forEach(function (k) {
|
|
10
|
-
if (k !== 'default') {
|
|
11
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
12
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () { return e[k]; }
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
n.default = e;
|
|
20
|
-
return Object.freeze(n);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
var pb_1__namespace = /*#__PURE__*/_interopNamespaceDefault(pb_1);
|
|
24
|
-
|
|
25
|
-
/*
|
|
26
|
-
* SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
|
|
27
|
-
*
|
|
28
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
29
|
-
*/
|
|
30
|
-
/**
|
|
31
|
-
* Generated by protoc-gen-ts. DO NOT EDIT!
|
|
32
|
-
* compiler version: 5.28.2
|
|
33
|
-
* source: esp_local_ctrl.proto
|
|
34
|
-
*/
|
|
35
|
-
/**
|
|
36
|
-
* Enum defining the types of local control messages
|
|
37
|
-
*/
|
|
38
|
-
exports.LocalCtrlMsgType = void 0;
|
|
39
|
-
(function (LocalCtrlMsgType) {
|
|
40
|
-
LocalCtrlMsgType[LocalCtrlMsgType["TypeCmdGetPropertyCount"] = 0] = "TypeCmdGetPropertyCount";
|
|
41
|
-
LocalCtrlMsgType[LocalCtrlMsgType["TypeRespGetPropertyCount"] = 1] = "TypeRespGetPropertyCount";
|
|
42
|
-
LocalCtrlMsgType[LocalCtrlMsgType["TypeCmdGetPropertyValues"] = 4] = "TypeCmdGetPropertyValues";
|
|
43
|
-
LocalCtrlMsgType[LocalCtrlMsgType["TypeRespGetPropertyValues"] = 5] = "TypeRespGetPropertyValues";
|
|
44
|
-
LocalCtrlMsgType[LocalCtrlMsgType["TypeCmdSetPropertyValues"] = 6] = "TypeCmdSetPropertyValues";
|
|
45
|
-
LocalCtrlMsgType[LocalCtrlMsgType["TypeRespSetPropertyValues"] = 7] = "TypeRespSetPropertyValues";
|
|
46
|
-
})(exports.LocalCtrlMsgType || (exports.LocalCtrlMsgType = {}));
|
|
47
|
-
/**
|
|
48
|
-
* Command to get property count
|
|
49
|
-
*/
|
|
50
|
-
class CmdGetPropertyCount extends pb_1__namespace.Message {
|
|
51
|
-
constructor(data) {
|
|
52
|
-
super();
|
|
53
|
-
pb_1__namespace.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []);
|
|
54
|
-
}
|
|
55
|
-
static fromObject(data) {
|
|
56
|
-
return new CmdGetPropertyCount(data);
|
|
57
|
-
}
|
|
58
|
-
toObject() {
|
|
59
|
-
return {};
|
|
60
|
-
}
|
|
61
|
-
serialize() {
|
|
62
|
-
const writer = new pb_1__namespace.BinaryWriter();
|
|
63
|
-
return writer.getResultBuffer();
|
|
64
|
-
}
|
|
65
|
-
static deserialize(_bytes) {
|
|
66
|
-
return new CmdGetPropertyCount();
|
|
67
|
-
}
|
|
68
|
-
serializeBinary() {
|
|
69
|
-
return this.serialize();
|
|
70
|
-
}
|
|
71
|
-
static deserializeBinary(bytes) {
|
|
72
|
-
return CmdGetPropertyCount.deserialize(bytes);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Response containing property count
|
|
77
|
-
*/
|
|
78
|
-
class RespGetPropertyCount extends pb_1__namespace.Message {
|
|
79
|
-
status = constants.Status.Success;
|
|
80
|
-
count = 0;
|
|
81
|
-
constructor(data) {
|
|
82
|
-
super();
|
|
83
|
-
if (data) {
|
|
84
|
-
this.status = data.status ?? this.status;
|
|
85
|
-
this.count = data.count ?? this.count;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
static fromObject(data) {
|
|
89
|
-
return new RespGetPropertyCount(data);
|
|
90
|
-
}
|
|
91
|
-
toObject() {
|
|
92
|
-
return {
|
|
93
|
-
status: this.status,
|
|
94
|
-
count: this.count,
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
serialize() {
|
|
98
|
-
const writer = new pb_1__namespace.BinaryWriter();
|
|
99
|
-
if (this.status !== constants.Status.Success) {
|
|
100
|
-
writer.writeEnum(1, this.status);
|
|
101
|
-
}
|
|
102
|
-
if (this.count !== 0) {
|
|
103
|
-
writer.writeUint32(2, this.count);
|
|
104
|
-
}
|
|
105
|
-
return writer.getResultBuffer();
|
|
106
|
-
}
|
|
107
|
-
static deserialize(bytes) {
|
|
108
|
-
const reader = new pb_1__namespace.BinaryReader(bytes);
|
|
109
|
-
const message = new RespGetPropertyCount();
|
|
110
|
-
while (reader.nextField()) {
|
|
111
|
-
if (reader.isEndGroup())
|
|
112
|
-
break;
|
|
113
|
-
switch (reader.getFieldNumber()) {
|
|
114
|
-
case 1:
|
|
115
|
-
message.status = reader.readEnum();
|
|
116
|
-
break;
|
|
117
|
-
case 2:
|
|
118
|
-
message.count = reader.readUint32();
|
|
119
|
-
break;
|
|
120
|
-
default:
|
|
121
|
-
reader.skipField();
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
return message;
|
|
125
|
-
}
|
|
126
|
-
serializeBinary() {
|
|
127
|
-
return this.serialize();
|
|
128
|
-
}
|
|
129
|
-
static deserializeBinary(bytes) {
|
|
130
|
-
return RespGetPropertyCount.deserialize(bytes);
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
* Property information structure
|
|
135
|
-
*/
|
|
136
|
-
class PropertyInfo extends pb_1__namespace.Message {
|
|
137
|
-
status = constants.Status.Success;
|
|
138
|
-
name = "";
|
|
139
|
-
type = 0;
|
|
140
|
-
flags = 0;
|
|
141
|
-
value = new Uint8Array(0);
|
|
142
|
-
constructor(data) {
|
|
143
|
-
super();
|
|
144
|
-
if (data) {
|
|
145
|
-
this.status = data.status ?? this.status;
|
|
146
|
-
this.name = data.name ?? this.name;
|
|
147
|
-
this.type = data.type ?? this.type;
|
|
148
|
-
this.flags = data.flags ?? this.flags;
|
|
149
|
-
this.value = data.value ?? this.value;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
static fromObject(data) {
|
|
153
|
-
return new PropertyInfo(data);
|
|
154
|
-
}
|
|
155
|
-
toObject() {
|
|
156
|
-
return {
|
|
157
|
-
status: this.status,
|
|
158
|
-
name: this.name,
|
|
159
|
-
type: this.type,
|
|
160
|
-
flags: this.flags,
|
|
161
|
-
value: this.value,
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
serialize() {
|
|
165
|
-
const writer = new pb_1__namespace.BinaryWriter();
|
|
166
|
-
if (this.status !== constants.Status.Success) {
|
|
167
|
-
writer.writeEnum(1, this.status);
|
|
168
|
-
}
|
|
169
|
-
if (this.name) {
|
|
170
|
-
writer.writeString(2, this.name);
|
|
171
|
-
}
|
|
172
|
-
if (this.type !== 0) {
|
|
173
|
-
writer.writeUint32(3, this.type);
|
|
174
|
-
}
|
|
175
|
-
if (this.flags !== 0) {
|
|
176
|
-
writer.writeUint32(4, this.flags);
|
|
177
|
-
}
|
|
178
|
-
if (this.value.length) {
|
|
179
|
-
writer.writeBytes(5, this.value);
|
|
180
|
-
}
|
|
181
|
-
return writer.getResultBuffer();
|
|
182
|
-
}
|
|
183
|
-
static deserialize(bytes) {
|
|
184
|
-
const reader = new pb_1__namespace.BinaryReader(bytes);
|
|
185
|
-
const message = new PropertyInfo();
|
|
186
|
-
while (reader.nextField()) {
|
|
187
|
-
if (reader.isEndGroup())
|
|
188
|
-
break;
|
|
189
|
-
switch (reader.getFieldNumber()) {
|
|
190
|
-
case 1:
|
|
191
|
-
message.status = reader.readEnum();
|
|
192
|
-
break;
|
|
193
|
-
case 2:
|
|
194
|
-
message.name = reader.readString();
|
|
195
|
-
break;
|
|
196
|
-
case 3:
|
|
197
|
-
message.type = reader.readUint32();
|
|
198
|
-
break;
|
|
199
|
-
case 4:
|
|
200
|
-
message.flags = reader.readUint32();
|
|
201
|
-
break;
|
|
202
|
-
case 5:
|
|
203
|
-
message.value = reader.readBytes();
|
|
204
|
-
break;
|
|
205
|
-
default:
|
|
206
|
-
reader.skipField();
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
return message;
|
|
210
|
-
}
|
|
211
|
-
serializeBinary() {
|
|
212
|
-
return this.serialize();
|
|
213
|
-
}
|
|
214
|
-
static deserializeBinary(bytes) {
|
|
215
|
-
return PropertyInfo.deserialize(bytes);
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
class CmdGetPropertyValues extends pb_1__namespace.Message {
|
|
219
|
-
#one_of_decls = [];
|
|
220
|
-
constructor(data) {
|
|
221
|
-
super();
|
|
222
|
-
pb_1__namespace.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], this.#one_of_decls);
|
|
223
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
224
|
-
if ("indices" in data && data.indices != undefined) {
|
|
225
|
-
this.indices = data.indices;
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
get indices() {
|
|
230
|
-
return pb_1__namespace.Message.getFieldWithDefault(this, 1, []);
|
|
231
|
-
}
|
|
232
|
-
set indices(value) {
|
|
233
|
-
pb_1__namespace.Message.setField(this, 1, value);
|
|
234
|
-
}
|
|
235
|
-
static fromObject(data) {
|
|
236
|
-
const message = new CmdGetPropertyValues({});
|
|
237
|
-
if (data.indices != null) {
|
|
238
|
-
message.indices = data.indices;
|
|
239
|
-
}
|
|
240
|
-
return message;
|
|
241
|
-
}
|
|
242
|
-
toObject() {
|
|
243
|
-
const data = {};
|
|
244
|
-
if (this.indices != null) {
|
|
245
|
-
data.indices = this.indices;
|
|
246
|
-
}
|
|
247
|
-
return data;
|
|
248
|
-
}
|
|
249
|
-
serialize(w) {
|
|
250
|
-
const writer = w || new pb_1__namespace.BinaryWriter();
|
|
251
|
-
if (this.indices.length)
|
|
252
|
-
writer.writePackedUint32(1, this.indices);
|
|
253
|
-
if (!w)
|
|
254
|
-
return writer.getResultBuffer();
|
|
255
|
-
}
|
|
256
|
-
static deserialize(bytes) {
|
|
257
|
-
const reader = new pb_1__namespace.BinaryReader(bytes);
|
|
258
|
-
const message = new CmdGetPropertyValues();
|
|
259
|
-
while (reader.nextField()) {
|
|
260
|
-
if (reader.isEndGroup())
|
|
261
|
-
break;
|
|
262
|
-
switch (reader.getFieldNumber()) {
|
|
263
|
-
case 1:
|
|
264
|
-
message.indices = reader.readPackedUint32();
|
|
265
|
-
break;
|
|
266
|
-
default:
|
|
267
|
-
reader.skipField();
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
return message;
|
|
271
|
-
}
|
|
272
|
-
serializeBinary() {
|
|
273
|
-
return this.serialize();
|
|
274
|
-
}
|
|
275
|
-
static deserializeBinary(bytes) {
|
|
276
|
-
return CmdGetPropertyValues.deserialize(bytes);
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
class RespGetPropertyValues extends pb_1__namespace.Message {
|
|
280
|
-
#one_of_decls = [];
|
|
281
|
-
constructor(data) {
|
|
282
|
-
super();
|
|
283
|
-
pb_1__namespace.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2], this.#one_of_decls);
|
|
284
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
285
|
-
if ("status" in data && data.status != undefined) {
|
|
286
|
-
this.status = data.status;
|
|
287
|
-
}
|
|
288
|
-
if ("props" in data && data.props != undefined) {
|
|
289
|
-
this.props = data.props;
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
get status() {
|
|
294
|
-
return pb_1__namespace.Message.getFieldWithDefault(this, 1, constants.Status.Success);
|
|
295
|
-
}
|
|
296
|
-
set status(value) {
|
|
297
|
-
pb_1__namespace.Message.setField(this, 1, value);
|
|
298
|
-
}
|
|
299
|
-
get props() {
|
|
300
|
-
return pb_1__namespace.Message.getRepeatedWrapperField(this, PropertyInfo, 2);
|
|
301
|
-
}
|
|
302
|
-
set props(value) {
|
|
303
|
-
pb_1__namespace.Message.setRepeatedWrapperField(this, 2, value);
|
|
304
|
-
}
|
|
305
|
-
static fromObject(data) {
|
|
306
|
-
const message = new RespGetPropertyValues({});
|
|
307
|
-
if (data.status != null) {
|
|
308
|
-
message.status = data.status;
|
|
309
|
-
}
|
|
310
|
-
if (data.props != null) {
|
|
311
|
-
message.props = data.props.map((item) => PropertyInfo.fromObject(item));
|
|
312
|
-
}
|
|
313
|
-
return message;
|
|
314
|
-
}
|
|
315
|
-
toObject() {
|
|
316
|
-
const data = {};
|
|
317
|
-
if (this.status != null) {
|
|
318
|
-
data.status = this.status;
|
|
319
|
-
}
|
|
320
|
-
if (this.props != null) {
|
|
321
|
-
data.props = this.props.map((item) => item.toObject());
|
|
322
|
-
}
|
|
323
|
-
return data;
|
|
324
|
-
}
|
|
325
|
-
serialize() {
|
|
326
|
-
const writer = new pb_1__namespace.BinaryWriter();
|
|
327
|
-
if (this.status != constants.Status.Success)
|
|
328
|
-
writer.writeEnum(1, this.status);
|
|
329
|
-
for (const item of this.props) {
|
|
330
|
-
writer.writeBytes(2, item.serialize());
|
|
331
|
-
}
|
|
332
|
-
return writer.getResultBuffer();
|
|
333
|
-
}
|
|
334
|
-
static deserialize(bytes) {
|
|
335
|
-
const reader = new pb_1__namespace.BinaryReader(bytes);
|
|
336
|
-
const message = new RespGetPropertyValues();
|
|
337
|
-
while (reader.nextField()) {
|
|
338
|
-
if (reader.isEndGroup())
|
|
339
|
-
break;
|
|
340
|
-
switch (reader.getFieldNumber()) {
|
|
341
|
-
case 1:
|
|
342
|
-
message.status = reader.readEnum();
|
|
343
|
-
break;
|
|
344
|
-
case 2: {
|
|
345
|
-
const itemBytes = reader.readBytes();
|
|
346
|
-
pb_1__namespace.Message.addToRepeatedWrapperField(message, 2, PropertyInfo.deserialize(itemBytes), PropertyInfo);
|
|
347
|
-
break;
|
|
348
|
-
}
|
|
349
|
-
default:
|
|
350
|
-
reader.skipField();
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
return message;
|
|
354
|
-
}
|
|
355
|
-
serializeBinary() {
|
|
356
|
-
return this.serialize();
|
|
357
|
-
}
|
|
358
|
-
static deserializeBinary(bytes) {
|
|
359
|
-
return RespGetPropertyValues.deserialize(bytes);
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
class PropertyValue extends pb_1__namespace.Message {
|
|
363
|
-
#one_of_decls = [];
|
|
364
|
-
constructor(data) {
|
|
365
|
-
super();
|
|
366
|
-
pb_1__namespace.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
367
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
368
|
-
if ("index" in data && data.index != undefined) {
|
|
369
|
-
this.index = data.index;
|
|
370
|
-
}
|
|
371
|
-
if ("value" in data && data.value != undefined) {
|
|
372
|
-
this.value = data.value;
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
get index() {
|
|
377
|
-
return pb_1__namespace.Message.getFieldWithDefault(this, 1, 0);
|
|
378
|
-
}
|
|
379
|
-
set index(value) {
|
|
380
|
-
pb_1__namespace.Message.setField(this, 1, value);
|
|
381
|
-
}
|
|
382
|
-
get value() {
|
|
383
|
-
return pb_1__namespace.Message.getFieldWithDefault(this, 2, new Uint8Array(0));
|
|
384
|
-
}
|
|
385
|
-
set value(value) {
|
|
386
|
-
pb_1__namespace.Message.setField(this, 2, value);
|
|
387
|
-
}
|
|
388
|
-
static fromObject(data) {
|
|
389
|
-
const message = new PropertyValue({});
|
|
390
|
-
if (data.index != null) {
|
|
391
|
-
message.index = data.index;
|
|
392
|
-
}
|
|
393
|
-
if (data.value != null) {
|
|
394
|
-
message.value = data.value;
|
|
395
|
-
}
|
|
396
|
-
return message;
|
|
397
|
-
}
|
|
398
|
-
toObject() {
|
|
399
|
-
const data = {};
|
|
400
|
-
if (this.index != null) {
|
|
401
|
-
data.index = this.index;
|
|
402
|
-
}
|
|
403
|
-
if (this.value != null) {
|
|
404
|
-
data.value = this.value;
|
|
405
|
-
}
|
|
406
|
-
return data;
|
|
407
|
-
}
|
|
408
|
-
serialize(w) {
|
|
409
|
-
const writer = w || new pb_1__namespace.BinaryWriter();
|
|
410
|
-
if (this.index != 0)
|
|
411
|
-
writer.writeUint32(1, this.index);
|
|
412
|
-
if (this.value.length)
|
|
413
|
-
writer.writeBytes(2, this.value);
|
|
414
|
-
if (!w)
|
|
415
|
-
return writer.getResultBuffer();
|
|
416
|
-
}
|
|
417
|
-
static deserialize(bytes) {
|
|
418
|
-
const reader = new pb_1__namespace.BinaryReader(bytes);
|
|
419
|
-
const message = new PropertyValue();
|
|
420
|
-
while (reader.nextField()) {
|
|
421
|
-
if (reader.isEndGroup())
|
|
422
|
-
break;
|
|
423
|
-
switch (reader.getFieldNumber()) {
|
|
424
|
-
case 1:
|
|
425
|
-
message.index = reader.readUint32();
|
|
426
|
-
break;
|
|
427
|
-
case 2:
|
|
428
|
-
message.value = reader.readBytes();
|
|
429
|
-
break;
|
|
430
|
-
default:
|
|
431
|
-
reader.skipField();
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
return message;
|
|
435
|
-
}
|
|
436
|
-
serializeBinary() {
|
|
437
|
-
return this.serialize();
|
|
438
|
-
}
|
|
439
|
-
static deserializeBinary(bytes) {
|
|
440
|
-
return PropertyValue.deserialize(bytes);
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
class CmdSetPropertyValues extends pb_1__namespace.Message {
|
|
444
|
-
#one_of_decls = [];
|
|
445
|
-
constructor(data) {
|
|
446
|
-
super();
|
|
447
|
-
pb_1__namespace.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], this.#one_of_decls);
|
|
448
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
449
|
-
if ("props" in data && data.props != undefined) {
|
|
450
|
-
this.props = data.props;
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
get props() {
|
|
455
|
-
return pb_1__namespace.Message.getRepeatedWrapperField(this, PropertyValue, 1);
|
|
456
|
-
}
|
|
457
|
-
set props(value) {
|
|
458
|
-
pb_1__namespace.Message.setRepeatedWrapperField(this, 1, value);
|
|
459
|
-
}
|
|
460
|
-
static fromObject(data) {
|
|
461
|
-
const message = new CmdSetPropertyValues({});
|
|
462
|
-
if (data.props != null) {
|
|
463
|
-
message.props = data.props.map((item) => PropertyValue.fromObject(item));
|
|
464
|
-
}
|
|
465
|
-
return message;
|
|
466
|
-
}
|
|
467
|
-
toObject() {
|
|
468
|
-
const data = {};
|
|
469
|
-
if (this.props != null) {
|
|
470
|
-
data.props = this.props.map((item) => item.toObject());
|
|
471
|
-
}
|
|
472
|
-
return data;
|
|
473
|
-
}
|
|
474
|
-
serialize(w) {
|
|
475
|
-
const writer = w || new pb_1__namespace.BinaryWriter();
|
|
476
|
-
if (this.props.length)
|
|
477
|
-
writer.writeRepeatedMessage(1, this.props, (item) => item.serialize(writer));
|
|
478
|
-
if (!w)
|
|
479
|
-
return writer.getResultBuffer();
|
|
480
|
-
}
|
|
481
|
-
static deserialize(bytes) {
|
|
482
|
-
const reader = new pb_1__namespace.BinaryReader(bytes);
|
|
483
|
-
const message = new CmdSetPropertyValues();
|
|
484
|
-
while (reader.nextField()) {
|
|
485
|
-
if (reader.isEndGroup())
|
|
486
|
-
break;
|
|
487
|
-
switch (reader.getFieldNumber()) {
|
|
488
|
-
case 1: {
|
|
489
|
-
const itemBytes = reader.readBytes();
|
|
490
|
-
pb_1__namespace.Message.addToRepeatedWrapperField(message, 1, PropertyValue.deserialize(itemBytes), PropertyValue);
|
|
491
|
-
break;
|
|
492
|
-
}
|
|
493
|
-
default:
|
|
494
|
-
reader.skipField();
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
return message;
|
|
498
|
-
}
|
|
499
|
-
serializeBinary() {
|
|
500
|
-
return this.serialize();
|
|
501
|
-
}
|
|
502
|
-
static deserializeBinary(bytes) {
|
|
503
|
-
return CmdSetPropertyValues.deserialize(bytes);
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
class RespSetPropertyValues extends pb_1__namespace.Message {
|
|
507
|
-
#one_of_decls = [];
|
|
508
|
-
constructor(data) {
|
|
509
|
-
super();
|
|
510
|
-
pb_1__namespace.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
511
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
512
|
-
if ("status" in data && data.status != undefined) {
|
|
513
|
-
this.status = data.status;
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
get status() {
|
|
518
|
-
return pb_1__namespace.Message.getFieldWithDefault(this, 1, constants.Status.Success);
|
|
519
|
-
}
|
|
520
|
-
set status(value) {
|
|
521
|
-
pb_1__namespace.Message.setField(this, 1, value);
|
|
522
|
-
}
|
|
523
|
-
static fromObject(data) {
|
|
524
|
-
const message = new RespSetPropertyValues({});
|
|
525
|
-
if (data.status != null) {
|
|
526
|
-
message.status = data.status;
|
|
527
|
-
}
|
|
528
|
-
return message;
|
|
529
|
-
}
|
|
530
|
-
toObject() {
|
|
531
|
-
const data = {};
|
|
532
|
-
if (this.status != null) {
|
|
533
|
-
data.status = this.status;
|
|
534
|
-
}
|
|
535
|
-
return data;
|
|
536
|
-
}
|
|
537
|
-
serialize(w) {
|
|
538
|
-
const writer = w || new pb_1__namespace.BinaryWriter();
|
|
539
|
-
if (this.status != constants.Status.Success)
|
|
540
|
-
writer.writeEnum(1, this.status);
|
|
541
|
-
if (!w)
|
|
542
|
-
return writer.getResultBuffer();
|
|
543
|
-
}
|
|
544
|
-
static deserialize(bytes) {
|
|
545
|
-
const reader = new pb_1__namespace.BinaryReader(bytes);
|
|
546
|
-
const message = new RespSetPropertyValues();
|
|
547
|
-
while (reader.nextField()) {
|
|
548
|
-
if (reader.isEndGroup())
|
|
549
|
-
break;
|
|
550
|
-
switch (reader.getFieldNumber()) {
|
|
551
|
-
case 1:
|
|
552
|
-
message.status = reader.readEnum();
|
|
553
|
-
break;
|
|
554
|
-
default:
|
|
555
|
-
reader.skipField();
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
return message;
|
|
559
|
-
}
|
|
560
|
-
serializeBinary() {
|
|
561
|
-
return this.serialize();
|
|
562
|
-
}
|
|
563
|
-
static deserializeBinary(bytes) {
|
|
564
|
-
return RespSetPropertyValues.deserialize(bytes);
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
class LocalCtrlMessage extends pb_1__namespace.Message {
|
|
568
|
-
#one_of_decls = [[10, 11, 12, 13, 14, 15]];
|
|
569
|
-
constructor(data) {
|
|
570
|
-
super();
|
|
571
|
-
pb_1__namespace.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
572
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
573
|
-
if ("msg" in data && data.msg != undefined) {
|
|
574
|
-
this.msg = data.msg;
|
|
575
|
-
}
|
|
576
|
-
if ("cmd_get_prop_count" in data && data.cmd_get_prop_count != undefined) {
|
|
577
|
-
this.cmd_get_prop_count = data.cmd_get_prop_count;
|
|
578
|
-
}
|
|
579
|
-
if ("resp_get_prop_count" in data && data.resp_get_prop_count != undefined) {
|
|
580
|
-
this.resp_get_prop_count = data.resp_get_prop_count;
|
|
581
|
-
}
|
|
582
|
-
if ("cmd_get_prop_vals" in data && data.cmd_get_prop_vals != undefined) {
|
|
583
|
-
this.cmd_get_prop_vals = data.cmd_get_prop_vals;
|
|
584
|
-
}
|
|
585
|
-
if ("resp_get_prop_vals" in data && data.resp_get_prop_vals != undefined) {
|
|
586
|
-
this.resp_get_prop_vals = data.resp_get_prop_vals;
|
|
587
|
-
}
|
|
588
|
-
if ("cmd_set_prop_vals" in data && data.cmd_set_prop_vals != undefined) {
|
|
589
|
-
this.cmd_set_prop_vals = data.cmd_set_prop_vals;
|
|
590
|
-
}
|
|
591
|
-
if ("resp_set_prop_vals" in data && data.resp_set_prop_vals != undefined) {
|
|
592
|
-
this.resp_set_prop_vals = data.resp_set_prop_vals;
|
|
593
|
-
}
|
|
594
|
-
}
|
|
595
|
-
}
|
|
596
|
-
get msg() {
|
|
597
|
-
return pb_1__namespace.Message.getFieldWithDefault(this, 1, exports.LocalCtrlMsgType.TypeCmdGetPropertyCount);
|
|
598
|
-
}
|
|
599
|
-
set msg(value) {
|
|
600
|
-
pb_1__namespace.Message.setField(this, 1, value);
|
|
601
|
-
}
|
|
602
|
-
get cmd_get_prop_count() {
|
|
603
|
-
return pb_1__namespace.Message.getWrapperField(this, CmdGetPropertyCount, 10);
|
|
604
|
-
}
|
|
605
|
-
set cmd_get_prop_count(value) {
|
|
606
|
-
pb_1__namespace.Message.setOneofWrapperField(this, 10, this.#one_of_decls[0], value);
|
|
607
|
-
}
|
|
608
|
-
get has_cmd_get_prop_count() {
|
|
609
|
-
return pb_1__namespace.Message.getField(this, 10) != null;
|
|
610
|
-
}
|
|
611
|
-
get resp_get_prop_count() {
|
|
612
|
-
return pb_1__namespace.Message.getWrapperField(this, RespGetPropertyCount, 11);
|
|
613
|
-
}
|
|
614
|
-
set resp_get_prop_count(value) {
|
|
615
|
-
pb_1__namespace.Message.setOneofWrapperField(this, 11, this.#one_of_decls[0], value);
|
|
616
|
-
}
|
|
617
|
-
get has_resp_get_prop_count() {
|
|
618
|
-
return pb_1__namespace.Message.getField(this, 11) != null;
|
|
619
|
-
}
|
|
620
|
-
get cmd_get_prop_vals() {
|
|
621
|
-
return pb_1__namespace.Message.getWrapperField(this, CmdGetPropertyValues, 12);
|
|
622
|
-
}
|
|
623
|
-
set cmd_get_prop_vals(value) {
|
|
624
|
-
pb_1__namespace.Message.setOneofWrapperField(this, 12, this.#one_of_decls[0], value);
|
|
625
|
-
}
|
|
626
|
-
get has_cmd_get_prop_vals() {
|
|
627
|
-
return pb_1__namespace.Message.getField(this, 12) != null;
|
|
628
|
-
}
|
|
629
|
-
get resp_get_prop_vals() {
|
|
630
|
-
return pb_1__namespace.Message.getWrapperField(this, RespGetPropertyValues, 13);
|
|
631
|
-
}
|
|
632
|
-
set resp_get_prop_vals(value) {
|
|
633
|
-
pb_1__namespace.Message.setOneofWrapperField(this, 13, this.#one_of_decls[0], value);
|
|
634
|
-
}
|
|
635
|
-
get has_resp_get_prop_vals() {
|
|
636
|
-
return pb_1__namespace.Message.getField(this, 13) != null;
|
|
637
|
-
}
|
|
638
|
-
get cmd_set_prop_vals() {
|
|
639
|
-
return pb_1__namespace.Message.getWrapperField(this, CmdSetPropertyValues, 14);
|
|
640
|
-
}
|
|
641
|
-
set cmd_set_prop_vals(value) {
|
|
642
|
-
pb_1__namespace.Message.setOneofWrapperField(this, 14, this.#one_of_decls[0], value);
|
|
643
|
-
}
|
|
644
|
-
get has_cmd_set_prop_vals() {
|
|
645
|
-
return pb_1__namespace.Message.getField(this, 14) != null;
|
|
646
|
-
}
|
|
647
|
-
get resp_set_prop_vals() {
|
|
648
|
-
return pb_1__namespace.Message.getWrapperField(this, RespSetPropertyValues, 15);
|
|
649
|
-
}
|
|
650
|
-
set resp_set_prop_vals(value) {
|
|
651
|
-
pb_1__namespace.Message.setOneofWrapperField(this, 15, this.#one_of_decls[0], value);
|
|
652
|
-
}
|
|
653
|
-
get has_resp_set_prop_vals() {
|
|
654
|
-
return pb_1__namespace.Message.getField(this, 15) != null;
|
|
655
|
-
}
|
|
656
|
-
get payload() {
|
|
657
|
-
const cases = {
|
|
658
|
-
0: "none",
|
|
659
|
-
10: "cmd_get_prop_count",
|
|
660
|
-
11: "resp_get_prop_count",
|
|
661
|
-
12: "cmd_get_prop_vals",
|
|
662
|
-
13: "resp_get_prop_vals",
|
|
663
|
-
14: "cmd_set_prop_vals",
|
|
664
|
-
15: "resp_set_prop_vals",
|
|
665
|
-
};
|
|
666
|
-
return cases[pb_1__namespace.Message.computeOneofCase(this, [10, 11, 12, 13, 14, 15])];
|
|
667
|
-
}
|
|
668
|
-
static fromObject(data) {
|
|
669
|
-
const message = new LocalCtrlMessage({});
|
|
670
|
-
if (data.msg != null) {
|
|
671
|
-
message.msg = data.msg;
|
|
672
|
-
}
|
|
673
|
-
if (data.cmd_get_prop_count != null) {
|
|
674
|
-
message.cmd_get_prop_count = CmdGetPropertyCount.fromObject(data.cmd_get_prop_count);
|
|
675
|
-
}
|
|
676
|
-
if (data.resp_get_prop_count != null) {
|
|
677
|
-
message.resp_get_prop_count = RespGetPropertyCount.fromObject(data.resp_get_prop_count);
|
|
678
|
-
}
|
|
679
|
-
if (data.cmd_get_prop_vals != null) {
|
|
680
|
-
message.cmd_get_prop_vals = CmdGetPropertyValues.fromObject(data.cmd_get_prop_vals);
|
|
681
|
-
}
|
|
682
|
-
if (data.resp_get_prop_vals != null) {
|
|
683
|
-
message.resp_get_prop_vals = RespGetPropertyValues.fromObject(data.resp_get_prop_vals);
|
|
684
|
-
}
|
|
685
|
-
if (data.cmd_set_prop_vals != null) {
|
|
686
|
-
message.cmd_set_prop_vals = CmdSetPropertyValues.fromObject(data.cmd_set_prop_vals);
|
|
687
|
-
}
|
|
688
|
-
if (data.resp_set_prop_vals != null) {
|
|
689
|
-
message.resp_set_prop_vals = RespSetPropertyValues.fromObject(data.resp_set_prop_vals);
|
|
690
|
-
}
|
|
691
|
-
return message;
|
|
692
|
-
}
|
|
693
|
-
toObject() {
|
|
694
|
-
const data = {};
|
|
695
|
-
if (this.msg != null) {
|
|
696
|
-
data.msg = this.msg;
|
|
697
|
-
}
|
|
698
|
-
if (this.cmd_get_prop_count != null) {
|
|
699
|
-
data.cmd_get_prop_count = this.cmd_get_prop_count.toObject();
|
|
700
|
-
}
|
|
701
|
-
if (this.resp_get_prop_count != null) {
|
|
702
|
-
data.resp_get_prop_count = this.resp_get_prop_count.toObject();
|
|
703
|
-
}
|
|
704
|
-
if (this.cmd_get_prop_vals != null) {
|
|
705
|
-
data.cmd_get_prop_vals = this.cmd_get_prop_vals.toObject();
|
|
706
|
-
}
|
|
707
|
-
if (this.resp_get_prop_vals != null) {
|
|
708
|
-
data.resp_get_prop_vals = this.resp_get_prop_vals.toObject();
|
|
709
|
-
}
|
|
710
|
-
if (this.cmd_set_prop_vals != null) {
|
|
711
|
-
data.cmd_set_prop_vals = this.cmd_set_prop_vals.toObject();
|
|
712
|
-
}
|
|
713
|
-
if (this.resp_set_prop_vals != null) {
|
|
714
|
-
data.resp_set_prop_vals = this.resp_set_prop_vals.toObject();
|
|
715
|
-
}
|
|
716
|
-
return data;
|
|
717
|
-
}
|
|
718
|
-
serialize() {
|
|
719
|
-
const writer = new pb_1__namespace.BinaryWriter();
|
|
720
|
-
if (this.msg != exports.LocalCtrlMsgType.TypeCmdGetPropertyCount)
|
|
721
|
-
writer.writeEnum(1, this.msg);
|
|
722
|
-
if (this.has_cmd_get_prop_count)
|
|
723
|
-
writer.writeBytes(10, this.cmd_get_prop_count.serialize());
|
|
724
|
-
if (this.has_resp_get_prop_count)
|
|
725
|
-
writer.writeBytes(11, this.resp_get_prop_count.serialize());
|
|
726
|
-
if (this.has_cmd_get_prop_vals)
|
|
727
|
-
writer.writeBytes(12, this.cmd_get_prop_vals.serialize());
|
|
728
|
-
if (this.has_resp_get_prop_vals)
|
|
729
|
-
writer.writeBytes(13, this.resp_get_prop_vals.serialize());
|
|
730
|
-
if (this.has_cmd_set_prop_vals)
|
|
731
|
-
writer.writeBytes(14, this.cmd_set_prop_vals.serialize());
|
|
732
|
-
if (this.has_resp_set_prop_vals)
|
|
733
|
-
writer.writeBytes(15, this.resp_set_prop_vals.serialize());
|
|
734
|
-
return writer.getResultBuffer();
|
|
735
|
-
}
|
|
736
|
-
static deserialize(bytes) {
|
|
737
|
-
const reader = new pb_1__namespace.BinaryReader(bytes);
|
|
738
|
-
const message = new LocalCtrlMessage();
|
|
739
|
-
while (reader.nextField()) {
|
|
740
|
-
if (reader.isEndGroup())
|
|
741
|
-
break;
|
|
742
|
-
switch (reader.getFieldNumber()) {
|
|
743
|
-
case 1:
|
|
744
|
-
message.msg = reader.readEnum();
|
|
745
|
-
break;
|
|
746
|
-
case 10:
|
|
747
|
-
message.cmd_get_prop_count = CmdGetPropertyCount.deserialize(reader.readBytes());
|
|
748
|
-
break;
|
|
749
|
-
case 11:
|
|
750
|
-
message.resp_get_prop_count = RespGetPropertyCount.deserialize(reader.readBytes());
|
|
751
|
-
break;
|
|
752
|
-
case 12:
|
|
753
|
-
message.cmd_get_prop_vals = CmdGetPropertyValues.deserialize(reader.readBytes());
|
|
754
|
-
break;
|
|
755
|
-
case 13:
|
|
756
|
-
message.resp_get_prop_vals = RespGetPropertyValues.deserialize(reader.readBytes());
|
|
757
|
-
break;
|
|
758
|
-
case 14:
|
|
759
|
-
message.cmd_set_prop_vals = CmdSetPropertyValues.deserialize(reader.readBytes());
|
|
760
|
-
break;
|
|
761
|
-
case 15:
|
|
762
|
-
message.resp_set_prop_vals = RespSetPropertyValues.deserialize(reader.readBytes());
|
|
763
|
-
break;
|
|
764
|
-
default:
|
|
765
|
-
reader.skipField();
|
|
766
|
-
}
|
|
767
|
-
}
|
|
768
|
-
return message;
|
|
769
|
-
}
|
|
770
|
-
serializeBinary() {
|
|
771
|
-
return this.serialize();
|
|
772
|
-
}
|
|
773
|
-
static deserializeBinary(bytes) {
|
|
774
|
-
return LocalCtrlMessage.deserialize(bytes);
|
|
775
|
-
}
|
|
776
|
-
}
|
|
777
|
-
|
|
778
|
-
exports.CmdGetPropertyCount = CmdGetPropertyCount;
|
|
779
|
-
exports.CmdGetPropertyValues = CmdGetPropertyValues;
|
|
780
|
-
exports.CmdSetPropertyValues = CmdSetPropertyValues;
|
|
781
|
-
exports.LocalCtrlMessage = LocalCtrlMessage;
|
|
782
|
-
exports.PropertyInfo = PropertyInfo;
|
|
783
|
-
exports.PropertyValue = PropertyValue;
|
|
784
|
-
exports.RespGetPropertyCount = RespGetPropertyCount;
|
|
785
|
-
exports.RespGetPropertyValues = RespGetPropertyValues;
|
|
786
|
-
exports.RespSetPropertyValues = RespSetPropertyValues;
|
|
787
|
-
//# sourceMappingURL=esp_local_ctrl.js.map
|