skyeye-sdk-js 1.4.14 → 1.4.15
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/dist/src/SkyEyeClient.js +7 -1
- package/dist/src/proto/line_chart.proto +25 -0
- package/dist/src/proto/line_chart_grpc_pb.js +1 -0
- package/dist/src/proto/line_chart_pb.js +681 -0
- package/dist/src/proto/protoc.bat +1 -1
- package/dist/test.dat +0 -0
- package/dist/test.js +363 -13
- package/package.json +5 -3
- package/src/SkyEyeClient.ts +7 -1
- package/src/proto/line_chart.proto +25 -0
- package/src/proto/line_chart_grpc_pb.js +1 -0
- package/src/proto/line_chart_pb.js +681 -0
- package/src/proto/protoc.bat +1 -1
- package/src/proto/skyeye_rpc_grpc_pb.js +1 -1
- package/test.dat +0 -0
- package/test.ts +435 -18
- package/test_111.dat +0 -0
package/dist/src/SkyEyeClient.js
CHANGED
|
@@ -59,6 +59,12 @@ const cp = __importStar(require("child_process"));
|
|
|
59
59
|
const BaseResponse_1 = require("./response/BaseResponse");
|
|
60
60
|
const GetAddressWidthResponse_1 = require("./response/GetAddressWidthResponse");
|
|
61
61
|
const GetFaultInjectListResponse2_1 = require("./response/GetFaultInjectListResponse2");
|
|
62
|
+
const JSONbig = require('json-bigint')({
|
|
63
|
+
// 建议配置此项,将大数字存储为字符串,避免后续操作中的潜在问题
|
|
64
|
+
storeAsString: true
|
|
65
|
+
// 或者使用 'strict' 模式将其解析为 BigInt 类型 (ES2020)
|
|
66
|
+
// useNativeBigInt: true
|
|
67
|
+
});
|
|
62
68
|
let client = null;
|
|
63
69
|
// ----------------------------当前运行程序的设备树----------------------------------------//
|
|
64
70
|
const boardMap = new Map();
|
|
@@ -158,7 +164,7 @@ class SkyEyeClient extends skyeye_rpc_grpc_pb_1.JSONTransmissionClient {
|
|
|
158
164
|
});
|
|
159
165
|
// const res = JSON.parse(response.toString());
|
|
160
166
|
// console.log("res:",res)
|
|
161
|
-
const ackObj =
|
|
167
|
+
const ackObj = JSONbig.parse(response.toString()).ack;
|
|
162
168
|
// this.printResponseLog(ackObj)
|
|
163
169
|
if (ackObj.result === 'false')
|
|
164
170
|
ackObj.result = false;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
message Value {
|
|
4
|
+
string type = 1;
|
|
5
|
+
double doubleValue = 2;
|
|
6
|
+
int64 intValue = 3;
|
|
7
|
+
string stringValue = 4;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
message TimeData {
|
|
11
|
+
Value realTime = 1;
|
|
12
|
+
Value simulationTime = 2;
|
|
13
|
+
Value customTime = 3;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
message SeriesData {
|
|
17
|
+
string id = 1;
|
|
18
|
+
string name = 2;
|
|
19
|
+
repeated Value value = 3;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
message Series {
|
|
23
|
+
repeated SeriesData series = 1;
|
|
24
|
+
repeated TimeData time = 2;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// GENERATED CODE -- NO SERVICES IN PROTO
|