jooby-codec 1.7.0 → 1.9.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/dist/BinaryBuffer.d.ts +2 -0
- package/dist/BinaryBuffer.js +9 -0
- package/dist/BinaryBuffer.js.map +1 -1
- package/dist/CommandBinaryBuffer.d.ts +182 -49
- package/dist/CommandBinaryBuffer.js +274 -28
- package/dist/CommandBinaryBuffer.js.map +1 -1
- package/dist/commands/downlink/CorrectTime2000.d.ts +4 -3
- package/dist/commands/downlink/CorrectTime2000.js +1 -0
- package/dist/commands/downlink/CorrectTime2000.js.map +1 -1
- package/dist/commands/downlink/GetArchiveDaysMC.d.ts +5 -4
- package/dist/commands/downlink/GetArchiveDaysMC.js +2 -1
- package/dist/commands/downlink/GetArchiveDaysMC.js.map +1 -1
- package/dist/commands/downlink/GetArchiveEvents.d.ts +4 -3
- package/dist/commands/downlink/GetArchiveEvents.js +3 -5
- package/dist/commands/downlink/GetArchiveEvents.js.map +1 -1
- package/dist/commands/downlink/GetArchiveHoursMC.d.ts +5 -4
- package/dist/commands/downlink/GetArchiveHoursMC.js +2 -1
- package/dist/commands/downlink/GetArchiveHoursMC.js.map +1 -1
- package/dist/commands/downlink/GetCurrentMC.d.ts +1 -0
- package/dist/commands/downlink/GetCurrentMC.js +1 -0
- package/dist/commands/downlink/GetCurrentMC.js.map +1 -1
- package/dist/commands/downlink/{ExAbsArchiveDaysMC.d.ts → GetExAbsArchiveDaysMC.d.ts} +12 -11
- package/dist/commands/downlink/{ExAbsArchiveDaysMC.js → GetExAbsArchiveDaysMC.js} +12 -11
- package/dist/commands/downlink/GetExAbsArchiveDaysMC.js.map +1 -0
- package/dist/commands/downlink/{ExAbsArchiveHoursMC.d.ts → GetExAbsArchiveHoursMC.d.ts} +12 -11
- package/dist/commands/downlink/{ExAbsArchiveHoursMC.js → GetExAbsArchiveHoursMC.js} +12 -11
- package/dist/commands/downlink/GetExAbsArchiveHoursMC.js.map +1 -0
- package/dist/commands/downlink/{ExAbsCurrentMC.d.ts → GetExAbsCurrentMC.d.ts} +8 -7
- package/dist/commands/downlink/{ExAbsCurrentMC.js → GetExAbsCurrentMC.js} +12 -11
- package/dist/commands/downlink/GetExAbsCurrentMC.js.map +1 -0
- package/dist/commands/downlink/{GetLmicVersion.d.ts → GetLmicInfo.d.ts} +7 -6
- package/dist/commands/downlink/{GetLmicVersion.js → GetLmicInfo.js} +12 -11
- package/dist/commands/downlink/GetLmicInfo.js.map +1 -0
- package/dist/commands/downlink/GetParameter.d.ts +4 -3
- package/dist/commands/downlink/GetParameter.js +3 -8
- package/dist/commands/downlink/GetParameter.js.map +1 -1
- package/dist/commands/downlink/{NewStatus.d.ts → GetStatus.d.ts} +9 -7
- package/dist/commands/downlink/{NewStatus.js → GetStatus.js} +18 -10
- package/dist/commands/downlink/GetStatus.js.map +1 -0
- package/dist/commands/downlink/SetParameter.d.ts +1 -0
- package/dist/commands/downlink/SetParameter.js +94 -16
- package/dist/commands/downlink/SetParameter.js.map +1 -1
- package/dist/commands/downlink/SetTime2000.d.ts +4 -3
- package/dist/commands/downlink/SetTime2000.js +1 -0
- package/dist/commands/downlink/SetTime2000.js.map +1 -1
- package/dist/commands/downlink/SoftRestart.d.ts +1 -0
- package/dist/commands/downlink/SoftRestart.js +1 -0
- package/dist/commands/downlink/SoftRestart.js.map +1 -1
- package/dist/commands/downlink/index.d.ts +5 -5
- package/dist/commands/downlink/index.js +5 -5
- package/dist/commands/downlink/index.js.map +1 -1
- package/dist/commands/uplink/CorrectTime2000Response.d.ts +39 -0
- package/dist/commands/uplink/{CorrectTime2000.js → CorrectTime2000Response.js} +23 -14
- package/dist/commands/uplink/CorrectTime2000Response.js.map +1 -0
- package/dist/commands/uplink/CurrentMC.d.ts +41 -0
- package/dist/commands/uplink/{GetCurrentMC.js → CurrentMC.js} +19 -18
- package/dist/commands/uplink/CurrentMC.js.map +1 -0
- package/dist/commands/uplink/DataDayMC.d.ts +32 -3
- package/dist/commands/uplink/DataDayMC.js +47 -4
- package/dist/commands/uplink/DataDayMC.js.map +1 -1
- package/dist/commands/uplink/DataHourMC.d.ts +32 -2
- package/dist/commands/uplink/DataHourMC.js +49 -4
- package/dist/commands/uplink/DataHourMC.js.map +1 -1
- package/dist/commands/uplink/ExAbsCurrentMC.d.ts +32 -4
- package/dist/commands/uplink/ExAbsCurrentMC.js +46 -0
- package/dist/commands/uplink/ExAbsCurrentMC.js.map +1 -1
- package/dist/commands/uplink/ExAbsDayMC.d.ts +32 -2
- package/dist/commands/uplink/ExAbsDayMC.js +50 -2
- package/dist/commands/uplink/ExAbsDayMC.js.map +1 -1
- package/dist/commands/uplink/ExAbsHourMC.d.ts +16 -11
- package/dist/commands/uplink/ExAbsHourMC.js +32 -9
- package/dist/commands/uplink/ExAbsHourMC.js.map +1 -1
- package/dist/commands/uplink/GetArchiveDaysMCResponse.d.ts +58 -0
- package/dist/commands/uplink/{GetArchiveDaysMC.js → GetArchiveDaysMCResponse.js} +44 -20
- package/dist/commands/uplink/GetArchiveDaysMCResponse.js.map +1 -0
- package/dist/commands/uplink/GetArchiveEventsResponse.d.ts +54 -0
- package/dist/commands/uplink/{GetArchiveEvents.js → GetArchiveEventsResponse.js} +24 -18
- package/dist/commands/uplink/GetArchiveEventsResponse.js.map +1 -0
- package/dist/commands/uplink/GetArchiveHoursMCResponse.d.ts +58 -0
- package/dist/commands/uplink/GetArchiveHoursMCResponse.js +77 -0
- package/dist/commands/uplink/GetArchiveHoursMCResponse.js.map +1 -0
- package/dist/commands/uplink/GetExAbsArchiveDaysMCResponse.d.ts +47 -0
- package/dist/commands/uplink/{ExAbsArchiveDaysMC.js → GetExAbsArchiveDaysMCResponse.js} +52 -7
- package/dist/commands/uplink/GetExAbsArchiveDaysMCResponse.js.map +1 -0
- package/dist/commands/uplink/GetExAbsArchiveHoursMCResponse.d.ts +44 -0
- package/dist/commands/uplink/{ExAbsArchiveHoursMC.js → GetExAbsArchiveHoursMCResponse.js} +46 -7
- package/dist/commands/uplink/GetExAbsArchiveHoursMCResponse.js.map +1 -0
- package/dist/commands/uplink/GetLmicInfoResponse.d.ts +52 -0
- package/dist/commands/uplink/{GetLmicVersion.js → GetLmicInfoResponse.js} +27 -27
- package/dist/commands/uplink/GetLmicInfoResponse.js.map +1 -0
- package/dist/commands/uplink/GetParameterResponse.d.ts +35 -0
- package/dist/commands/uplink/{GetParameter.js → GetParameterResponse.js} +25 -32
- package/dist/commands/uplink/GetParameterResponse.js.map +1 -0
- package/dist/commands/uplink/LastEvent.d.ts +19 -10
- package/dist/commands/uplink/LastEvent.js +21 -12
- package/dist/commands/uplink/LastEvent.js.map +1 -1
- package/dist/commands/uplink/NewEvent.d.ts +12 -8
- package/dist/commands/uplink/NewEvent.js +12 -8
- package/dist/commands/uplink/NewEvent.js.map +1 -1
- package/dist/commands/uplink/SetTime2000Response.d.ts +38 -0
- package/dist/commands/uplink/{SetTime2000.js → SetTime2000Response.js} +23 -15
- package/dist/commands/uplink/SetTime2000Response.js.map +1 -0
- package/dist/commands/uplink/SoftRestartResponse.d.ts +28 -0
- package/dist/commands/uplink/SoftRestartResponse.js +44 -0
- package/dist/commands/uplink/SoftRestartResponse.js.map +1 -0
- package/dist/commands/uplink/Status.d.ts +55 -0
- package/dist/commands/uplink/Status.js +153 -0
- package/dist/commands/uplink/Status.js.map +1 -0
- package/dist/commands/uplink/Time2000.d.ts +11 -9
- package/dist/commands/uplink/Time2000.js +18 -8
- package/dist/commands/uplink/Time2000.js.map +1 -1
- package/dist/commands/uplink/index.d.ts +12 -12
- package/dist/commands/uplink/index.js +12 -12
- package/dist/commands/uplink/index.js.map +1 -1
- package/dist/constants/deviceParameters.d.ts +26 -12
- package/dist/constants/deviceParameters.js +26 -12
- package/dist/constants/deviceParameters.js.map +1 -1
- package/dist/constants/hardwareTypes.d.ts +55 -27
- package/dist/constants/hardwareTypes.js +55 -27
- package/dist/constants/hardwareTypes.js.map +1 -1
- package/dist/constants/index.d.ts +2 -1
- package/dist/constants/index.js +2 -1
- package/dist/constants/index.js.map +1 -1
- package/dist/constants/rx2SpreadFactors.d.ts +12 -0
- package/dist/constants/rx2SpreadFactors.js +13 -0
- package/dist/constants/rx2SpreadFactors.js.map +1 -0
- package/package.json +5 -1
- package/readme.md +33 -16
- package/dist/commands/downlink/ExAbsArchiveDaysMC.js.map +0 -1
- package/dist/commands/downlink/ExAbsArchiveHoursMC.js.map +0 -1
- package/dist/commands/downlink/ExAbsCurrentMC.js.map +0 -1
- package/dist/commands/downlink/GetLmicVersion.js.map +0 -1
- package/dist/commands/downlink/NewStatus.js.map +0 -1
- package/dist/commands/uplink/CorrectTime2000.d.ts +0 -37
- package/dist/commands/uplink/CorrectTime2000.js.map +0 -1
- package/dist/commands/uplink/ExAbsArchiveDaysMC.d.ts +0 -18
- package/dist/commands/uplink/ExAbsArchiveDaysMC.js.map +0 -1
- package/dist/commands/uplink/ExAbsArchiveHoursMC.d.ts +0 -18
- package/dist/commands/uplink/ExAbsArchiveHoursMC.js.map +0 -1
- package/dist/commands/uplink/GetArchiveDaysMC.d.ts +0 -50
- package/dist/commands/uplink/GetArchiveDaysMC.js.map +0 -1
- package/dist/commands/uplink/GetArchiveEvents.d.ts +0 -48
- package/dist/commands/uplink/GetArchiveEvents.js.map +0 -1
- package/dist/commands/uplink/GetArchiveHoursMC.d.ts +0 -69
- package/dist/commands/uplink/GetArchiveHoursMC.js +0 -72
- package/dist/commands/uplink/GetArchiveHoursMC.js.map +0 -1
- package/dist/commands/uplink/GetCurrentMC.d.ts +0 -40
- package/dist/commands/uplink/GetCurrentMC.js.map +0 -1
- package/dist/commands/uplink/GetLmicVersion.d.ts +0 -46
- package/dist/commands/uplink/GetLmicVersion.js.map +0 -1
- package/dist/commands/uplink/GetParameter.d.ts +0 -30
- package/dist/commands/uplink/GetParameter.js.map +0 -1
- package/dist/commands/uplink/NewStatus.d.ts +0 -56
- package/dist/commands/uplink/NewStatus.js +0 -141
- package/dist/commands/uplink/NewStatus.js.map +0 -1
- package/dist/commands/uplink/SetTime2000.d.ts +0 -37
- package/dist/commands/uplink/SetTime2000.js.map +0 -1
- package/dist/commands/uplink/SoftRestart.d.ts +0 -24
- package/dist/commands/uplink/SoftRestart.js +0 -34
- package/dist/commands/uplink/SoftRestart.js.map +0 -1
- package/dist/constants/general.d.ts +0 -1
- package/dist/constants/general.js +0 -2
- package/dist/constants/general.js.map +0 -1
- package/dist/utils/getBitArrayFromNumber.d.ts +0 -14
- package/dist/utils/getBitArrayFromNumber.js +0 -15
- package/dist/utils/getBitArrayFromNumber.js.map +0 -1
- package/dist/utils/getIntFromBitString.d.ts +0 -6
- package/dist/utils/getIntFromBitString.js +0 -6
- package/dist/utils/getIntFromBitString.js.map +0 -1
|
@@ -7,7 +7,7 @@ import { TTime2000 } from '../../utils/time.js';
|
|
|
7
7
|
* // request for 2 hours archive values from channel #1 from 2023-12-23T12:00:00.000Z or 756648000 seconds since 2000 year
|
|
8
8
|
* {channelList: [0], hours: 2, startTime: 756648000}
|
|
9
9
|
*/
|
|
10
|
-
interface
|
|
10
|
+
interface IGetArchiveHoursMCParameters {
|
|
11
11
|
/** amount of hours to retrieve */
|
|
12
12
|
hours: number;
|
|
13
13
|
startTime: TTime2000;
|
|
@@ -15,7 +15,7 @@ interface IDownlinkGetArchiveHoursMCParameters {
|
|
|
15
15
|
channelList: Array<number>;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
|
-
* Downlink command
|
|
18
|
+
* Downlink command.
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
21
|
* ```js
|
|
@@ -28,11 +28,12 @@ interface IDownlinkGetArchiveHoursMCParameters {
|
|
|
28
28
|
* console.log(command.toHex());
|
|
29
29
|
* // 1a 04 2f 97 0c 01
|
|
30
30
|
* ```
|
|
31
|
+
*
|
|
31
32
|
* [Command format documentation](https://github.com/jooby-dev/jooby-docs/blob/main/docs/commands/GetArchiveHoursMC.md#request)
|
|
32
33
|
*/
|
|
33
34
|
declare class GetArchiveHoursMC extends Command {
|
|
34
|
-
parameters:
|
|
35
|
-
constructor(parameters:
|
|
35
|
+
parameters: IGetArchiveHoursMCParameters;
|
|
36
|
+
constructor(parameters: IGetArchiveHoursMCParameters);
|
|
36
37
|
static readonly id = 26;
|
|
37
38
|
static readonly directionType = 1;
|
|
38
39
|
static readonly hasParameters = true;
|
|
@@ -5,7 +5,7 @@ import { getSecondsFromDate, getDateFromSeconds } from '../../utils/time.js';
|
|
|
5
5
|
const COMMAND_ID = 0x1a;
|
|
6
6
|
const COMMAND_BODY_SIZE = 4;
|
|
7
7
|
/**
|
|
8
|
-
* Downlink command
|
|
8
|
+
* Downlink command.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* ```js
|
|
@@ -18,6 +18,7 @@ const COMMAND_BODY_SIZE = 4;
|
|
|
18
18
|
* console.log(command.toHex());
|
|
19
19
|
* // 1a 04 2f 97 0c 01
|
|
20
20
|
* ```
|
|
21
|
+
*
|
|
21
22
|
* [Command format documentation](https://github.com/jooby-dev/jooby-docs/blob/main/docs/commands/GetArchiveHoursMC.md#request)
|
|
22
23
|
*/
|
|
23
24
|
class GetArchiveHoursMC extends Command {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetArchiveHoursMC.js","sourceRoot":"","sources":["../../../src/commands/downlink/GetArchiveHoursMC.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,kBAAkB,CAAC;AACvC,OAAO,mBAA+B,MAAM,8BAA8B,CAAC;AAC3E,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AACvD,OAAO,EAAC,kBAAkB,EAAE,kBAAkB,EAAY,MAAM,qBAAqB,CAAC;AAmBtF,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAG5B
|
|
1
|
+
{"version":3,"file":"GetArchiveHoursMC.js","sourceRoot":"","sources":["../../../src/commands/downlink/GetArchiveHoursMC.ts"],"names":[],"mappings":"A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pE;QAED,OAAO,IAAI,iBAAiB,CAAC,EAAC,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,kBAAkB,CAAC,IAAI,CAAC,EAAC,CAAC,CAAC;IAC5F,CAAC;IAED,0CAA0C;IAC1C,OAAO;QACH,MAAM,EAAC,WAAW,EAAE,KAAK,EAAE,SAAS,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QACxD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,iBAAiB,CAAC,CAAC;QAE1D,MAAM,IAAI,GAAG,kBAAkB,CAAC,SAAS,CAAC,CAAC;QAC3C,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;QAEhC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACrB,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QAC7B,MAAM,CAAC,WAAW,CAAC,WAAW,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,EAAC,KAAK,EAAc,CAAA,CAAC,CAAC,CAAC;QAEpE,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AAxCe,oBAAE,GAAG,UAAU,CAAC;AAEhB,+BAAa,GAAG,QAAQ,CAAC;AAEzB,+BAAa,GAAG,IAAI,CAAC;AAwCzC,eAAe,iBAAiB,CAAC"}
|
|
@@ -12,6 +12,7 @@ import Command, { TCommandExampleList } from '../../Command.js';
|
|
|
12
12
|
* console.log(command.toHex());
|
|
13
13
|
* // 18 00
|
|
14
14
|
* ```
|
|
15
|
+
*
|
|
15
16
|
* [Command format documentation](https://github.com/jooby-dev/jooby-docs/blob/main/docs/commands/GetCurrentMC.md#request)
|
|
16
17
|
*/
|
|
17
18
|
declare class GetCurrentMC extends Command {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetCurrentMC.js","sourceRoot":"","sources":["../../../src/commands/downlink/GetCurrentMC.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AAGvD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,gBAAgB;QACtB,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAC;KACnC;CACJ,CAAC;AAGF
|
|
1
|
+
{"version":3,"file":"GetCurrentMC.js","sourceRoot":"","sources":["../../../src/commands/downlink/GetCurrentMC.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AAGvD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,gBAAgB;QACtB,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAC;KACnC;CACJ,CAAC;AAGF;;;;;;;;;;;;;;;GAeG;AACH,MAAM,YAAa,SAAQ,OAAO;IAU9B,oCAAoC;IACpC,MAAM,CAAC,SAAS;QACZ,OAAO,IAAI,YAAY,EAAE,CAAC;IAC9B,CAAC;IAED,0CAA0C;IAC1C,kDAAkD;IAClD,OAAO;QACH,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IACvC,CAAC;;AAlBe,eAAE,GAAG,UAAU,CAAC;AAEhB,0BAAa,GAAG,QAAQ,CAAC;AAEzB,qBAAQ,GAAG,QAAQ,CAAC;AAEpB,0BAAa,GAAG,KAAK,CAAC;AAgB1C,eAAe,YAAY,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
2
|
import { TTime2000 } from '../../utils/time.js';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* GetExAbsArchiveDaysMC command parameters
|
|
5
5
|
*
|
|
6
6
|
* @example
|
|
7
7
|
* // request for 1 days archive values from channel #1 from 2023-12-24T00:00:00.000Z or 756691200 seconds since 2000 year
|
|
8
8
|
* {channelList: [0], days: 1, startTime: 756691200}
|
|
9
9
|
*/
|
|
10
|
-
interface
|
|
10
|
+
interface IGetExAbsArchiveDaysMCParameters {
|
|
11
11
|
/** amount of days to retrieve */
|
|
12
12
|
days: number;
|
|
13
13
|
startTime: TTime2000;
|
|
@@ -15,28 +15,29 @@ interface IDownlinkExAbsArchiveDaysMCParameters {
|
|
|
15
15
|
channelList: Array<number>;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
|
-
* Downlink command
|
|
18
|
+
* Downlink command.
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
21
|
* ```js
|
|
22
|
-
* import
|
|
22
|
+
* import GetExAbsArchiveDaysMC from 'jooby-codec/commands/downlink/GetExAbsArchiveDaysMC';
|
|
23
23
|
*
|
|
24
24
|
* const parameters = {channelList: [0], days: 1, startTime: 756691200};
|
|
25
|
-
* const command = new
|
|
25
|
+
* const command = new GetExAbsArchiveDaysMC(parameters);
|
|
26
26
|
*
|
|
27
27
|
* // output command binary in hex representation
|
|
28
28
|
* console.log(command.toHex());
|
|
29
29
|
* // 1f 0c 04 2f 98 01 01
|
|
30
30
|
* ```
|
|
31
|
-
*
|
|
31
|
+
*
|
|
32
|
+
* [Command format documentation](https://github.com/jooby-dev/jooby-docs/blob/main/docs/commands/GetExAbsArchiveDaysMC.md#request)
|
|
32
33
|
*/
|
|
33
|
-
declare class
|
|
34
|
-
parameters:
|
|
35
|
-
constructor(parameters:
|
|
34
|
+
declare class GetExAbsArchiveDaysMC extends Command {
|
|
35
|
+
parameters: IGetExAbsArchiveDaysMCParameters;
|
|
36
|
+
constructor(parameters: IGetExAbsArchiveDaysMCParameters);
|
|
36
37
|
static readonly id = 3359;
|
|
37
38
|
static readonly directionType = 1;
|
|
38
39
|
static readonly hasParameters = true;
|
|
39
|
-
static fromBytes(data: Uint8Array):
|
|
40
|
+
static fromBytes(data: Uint8Array): GetExAbsArchiveDaysMC;
|
|
40
41
|
toBytes(): Uint8Array;
|
|
41
42
|
}
|
|
42
|
-
export default
|
|
43
|
+
export default GetExAbsArchiveDaysMC;
|
|
@@ -6,22 +6,23 @@ import { getSecondsFromDate, getDateFromSeconds } from '../../utils/time.js';
|
|
|
6
6
|
const COMMAND_ID = 0x0d1f;
|
|
7
7
|
const COMMAND_BODY_SIZE = 4;
|
|
8
8
|
/**
|
|
9
|
-
* Downlink command
|
|
9
|
+
* Downlink command.
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```js
|
|
13
|
-
* import
|
|
13
|
+
* import GetExAbsArchiveDaysMC from 'jooby-codec/commands/downlink/GetExAbsArchiveDaysMC';
|
|
14
14
|
*
|
|
15
15
|
* const parameters = {channelList: [0], days: 1, startTime: 756691200};
|
|
16
|
-
* const command = new
|
|
16
|
+
* const command = new GetExAbsArchiveDaysMC(parameters);
|
|
17
17
|
*
|
|
18
18
|
* // output command binary in hex representation
|
|
19
19
|
* console.log(command.toHex());
|
|
20
20
|
* // 1f 0c 04 2f 98 01 01
|
|
21
21
|
* ```
|
|
22
|
-
*
|
|
22
|
+
*
|
|
23
|
+
* [Command format documentation](https://github.com/jooby-dev/jooby-docs/blob/main/docs/commands/GetExAbsArchiveDaysMC.md#request)
|
|
23
24
|
*/
|
|
24
|
-
class
|
|
25
|
+
class GetExAbsArchiveDaysMC extends Command {
|
|
25
26
|
constructor(parameters) {
|
|
26
27
|
super();
|
|
27
28
|
this.parameters = parameters;
|
|
@@ -39,7 +40,7 @@ class ExAbsArchiveDaysMC extends Command {
|
|
|
39
40
|
if (!buffer.isEmpty) {
|
|
40
41
|
throw new Error(`${this.getName()}. BinaryBuffer is not empty.`);
|
|
41
42
|
}
|
|
42
|
-
return new
|
|
43
|
+
return new GetExAbsArchiveDaysMC({ channelList, days, startTime: getSecondsFromDate(date) });
|
|
43
44
|
}
|
|
44
45
|
// returns full message - header with body
|
|
45
46
|
toBytes() {
|
|
@@ -52,8 +53,8 @@ class ExAbsArchiveDaysMC extends Command {
|
|
|
52
53
|
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
53
54
|
}
|
|
54
55
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
export default
|
|
59
|
-
//# sourceMappingURL=
|
|
56
|
+
GetExAbsArchiveDaysMC.id = COMMAND_ID;
|
|
57
|
+
GetExAbsArchiveDaysMC.directionType = DOWNLINK;
|
|
58
|
+
GetExAbsArchiveDaysMC.hasParameters = true;
|
|
59
|
+
export default GetExAbsArchiveDaysMC;
|
|
60
|
+
//# sourceMappingURL=GetExAbsArchiveDaysMC.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetExAbsArchiveDaysMC.js","sourceRoot":"","sources":["../../../src/commands/downlink/GetExAbsArchiveDaysMC.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,kBAAkB,CAAC;AACvC,OAAO,mBAA+B,MAAM,8BAA8B,CAAC;AAC3E,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AACvD,OAAO,EAAC,kBAAkB,EAAE,kBAAkB,EAAY,MAAM,qBAAqB,CAAC;AAmBtF,0CAA0C;AAC1C,MAAM,UAAU,GAAG,MAAM,CAAC;AAC1B,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAG5B;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,qBAAsB,SAAQ,OAAO;IACvC,YAAqB,UAA4C;QAC7D,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAkC;QAG7D,IAAI,CAAC,UAAU,CAAC,WAAW,GAAG,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,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,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AArCe,wBAAE,GAAG,UAAU,CAAC;AAEhB,mCAAa,GAAG,QAAQ,CAAC;AAEzB,mCAAa,GAAG,IAAI,CAAC;AAqCzC,eAAe,qBAAqB,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
2
|
import { TTime2000 } from '../../utils/time.js';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* GetExAbsArchiveHoursMC command parameters
|
|
5
5
|
*
|
|
6
6
|
* @example
|
|
7
7
|
* // request for 2 hours archive values from channel #1 from 2023-12-23T12:00:00.000Z or 756648000 seconds since 2000 year
|
|
8
8
|
* {channelList: [0], hours: 2, startTime: 756648000}
|
|
9
9
|
*/
|
|
10
|
-
interface
|
|
10
|
+
interface IGetExAbsArchiveHoursMCParameters {
|
|
11
11
|
/** amount of hours to retrieve */
|
|
12
12
|
hours: number;
|
|
13
13
|
startTime: TTime2000;
|
|
@@ -15,28 +15,29 @@ interface IDownlinkExAbsArchiveHoursMCParameters {
|
|
|
15
15
|
channelList: Array<number>;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
|
-
* Downlink command
|
|
18
|
+
* Downlink command.
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
21
|
* ```js
|
|
22
|
-
* import
|
|
22
|
+
* import GetExAbsArchiveHoursMC from 'jooby-codec/commands/downlink/GetExAbsArchiveHoursMC';
|
|
23
23
|
*
|
|
24
24
|
* const parameters = {channelList: [0], hours: 0, startTime: 756648000};
|
|
25
|
-
* const command = new
|
|
25
|
+
* const command = new GetExAbsArchiveHoursMC(parameters);
|
|
26
26
|
*
|
|
27
27
|
* // output command binary in hex representation
|
|
28
28
|
* console.log(command.toHex());
|
|
29
29
|
* // 1f 0c 04 2f 97 0c 01
|
|
30
30
|
* ```
|
|
31
|
-
*
|
|
31
|
+
*
|
|
32
|
+
* [Command format documentation](https://github.com/jooby-dev/jooby-docs/blob/main/docs/commands/GetExAbsArchiveHoursMC.md#request)
|
|
32
33
|
*/
|
|
33
|
-
declare class
|
|
34
|
-
parameters:
|
|
35
|
-
constructor(parameters:
|
|
34
|
+
declare class GetExAbsArchiveHoursMC extends Command {
|
|
35
|
+
parameters: IGetExAbsArchiveHoursMCParameters;
|
|
36
|
+
constructor(parameters: IGetExAbsArchiveHoursMCParameters);
|
|
36
37
|
static readonly id = 3103;
|
|
37
38
|
static readonly directionType = 1;
|
|
38
39
|
static readonly hasParameters = true;
|
|
39
|
-
static fromBytes(data: Uint8Array):
|
|
40
|
+
static fromBytes(data: Uint8Array): GetExAbsArchiveHoursMC;
|
|
40
41
|
toBytes(): Uint8Array;
|
|
41
42
|
}
|
|
42
|
-
export default
|
|
43
|
+
export default GetExAbsArchiveHoursMC;
|
|
@@ -6,22 +6,23 @@ import { getSecondsFromDate, getDateFromSeconds } from '../../utils/time.js';
|
|
|
6
6
|
const COMMAND_ID = 0x0c1f;
|
|
7
7
|
const COMMAND_BODY_SIZE = 4;
|
|
8
8
|
/**
|
|
9
|
-
* Downlink command
|
|
9
|
+
* Downlink command.
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```js
|
|
13
|
-
* import
|
|
13
|
+
* import GetExAbsArchiveHoursMC from 'jooby-codec/commands/downlink/GetExAbsArchiveHoursMC';
|
|
14
14
|
*
|
|
15
15
|
* const parameters = {channelList: [0], hours: 0, startTime: 756648000};
|
|
16
|
-
* const command = new
|
|
16
|
+
* const command = new GetExAbsArchiveHoursMC(parameters);
|
|
17
17
|
*
|
|
18
18
|
* // output command binary in hex representation
|
|
19
19
|
* console.log(command.toHex());
|
|
20
20
|
* // 1f 0c 04 2f 97 0c 01
|
|
21
21
|
* ```
|
|
22
|
-
*
|
|
22
|
+
*
|
|
23
|
+
* [Command format documentation](https://github.com/jooby-dev/jooby-docs/blob/main/docs/commands/GetExAbsArchiveHoursMC.md#request)
|
|
23
24
|
*/
|
|
24
|
-
class
|
|
25
|
+
class GetExAbsArchiveHoursMC extends Command {
|
|
25
26
|
constructor(parameters) {
|
|
26
27
|
super();
|
|
27
28
|
this.parameters = parameters;
|
|
@@ -40,7 +41,7 @@ class ExAbsArchiveHoursMC extends Command {
|
|
|
40
41
|
if (!buffer.isEmpty) {
|
|
41
42
|
throw new Error(`${this.getName()}. BinaryBuffer is not empty.`);
|
|
42
43
|
}
|
|
43
|
-
return new
|
|
44
|
+
return new GetExAbsArchiveHoursMC({ channelList, hours, startTime: getSecondsFromDate(date) });
|
|
44
45
|
}
|
|
45
46
|
// returns full message - header with body
|
|
46
47
|
toBytes() {
|
|
@@ -54,8 +55,8 @@ class ExAbsArchiveHoursMC extends Command {
|
|
|
54
55
|
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
55
56
|
}
|
|
56
57
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
export default
|
|
61
|
-
//# sourceMappingURL=
|
|
58
|
+
GetExAbsArchiveHoursMC.id = COMMAND_ID;
|
|
59
|
+
GetExAbsArchiveHoursMC.directionType = DOWNLINK;
|
|
60
|
+
GetExAbsArchiveHoursMC.hasParameters = true;
|
|
61
|
+
export default GetExAbsArchiveHoursMC;
|
|
62
|
+
//# sourceMappingURL=GetExAbsArchiveHoursMC.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetExAbsArchiveHoursMC.js","sourceRoot":"","sources":["../../../src/commands/downlink/GetExAbsArchiveHoursMC.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,kBAAkB,CAAC;AACvC,OAAO,mBAA+B,MAAM,8BAA8B,CAAC;AAC3E,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AACvD,OAAO,EAAC,kBAAkB,EAAE,kBAAkB,EAAY,MAAM,qBAAqB,CAAC;AAmBtF,0CAA0C;AAC1C,MAAM,UAAU,GAAG,MAAM,CAAC;AAC1B,MAAM,iBAA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M,MAAM,GAAG,IAAI,mBAAmB,CAAC,iBAAiB,CAAC,CAAC;QAE1D,MAAM,IAAI,GAAG,kBAAkB,CAAC,SAAS,CAAC,CAAC;QAC3C,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;QAEhC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACrB,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QAC7B,MAAM,CAAC,WAAW,CAAC,WAAW,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,EAAC,KAAK,EAAc,CAAA,CAAC,CAAC,CAAC;QAEpE,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AAxCe,yBAAE,GAAG,UAAU,CAAC;AAEhB,oCAAa,GAAG,QAAQ,CAAC;AAEzB,oCAAa,GAAG,IAAI,CAAC;AAwCzC,eAAe,sBAAsB,CAAC"}
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
2
|
/**
|
|
3
|
-
* Downlink command
|
|
3
|
+
* Downlink command.
|
|
4
4
|
*
|
|
5
5
|
* @example
|
|
6
6
|
* ```js
|
|
7
|
-
* import
|
|
7
|
+
* import GetExAbsCurrentMC from 'jooby-codec/commands/downlink/GetExAbsCurrentMC';
|
|
8
8
|
*
|
|
9
|
-
* const command = new
|
|
9
|
+
* const command = new GetExAbsCurrentMC();
|
|
10
10
|
*
|
|
11
11
|
* // output command binary in hex representation
|
|
12
12
|
* console.log(command.toHex());
|
|
13
13
|
* // 1f 0f 00
|
|
14
14
|
* ```
|
|
15
|
-
*
|
|
15
|
+
*
|
|
16
|
+
* [Command format documentation](https://github.com/jooby-dev/jooby-docs/blob/main/docs/commands/GetExAbsCurrentMC.md#request)
|
|
16
17
|
*/
|
|
17
|
-
declare class
|
|
18
|
+
declare class GetExAbsCurrentMC extends Command {
|
|
18
19
|
constructor();
|
|
19
20
|
static readonly id = 3871;
|
|
20
21
|
static readonly directionType = 1;
|
|
21
22
|
static readonly hasParameters = false;
|
|
22
|
-
static fromBytes():
|
|
23
|
+
static fromBytes(): GetExAbsCurrentMC;
|
|
23
24
|
toBytes(): Uint8Array;
|
|
24
25
|
}
|
|
25
|
-
export default
|
|
26
|
+
export default GetExAbsCurrentMC;
|
|
@@ -3,27 +3,28 @@ import { DOWNLINK } from '../../constants/directions.js';
|
|
|
3
3
|
// TODO: rework extended headers detection
|
|
4
4
|
const COMMAND_ID = 0x0f1f;
|
|
5
5
|
/**
|
|
6
|
-
* Downlink command
|
|
6
|
+
* Downlink command.
|
|
7
7
|
*
|
|
8
8
|
* @example
|
|
9
9
|
* ```js
|
|
10
|
-
* import
|
|
10
|
+
* import GetExAbsCurrentMC from 'jooby-codec/commands/downlink/GetExAbsCurrentMC';
|
|
11
11
|
*
|
|
12
|
-
* const command = new
|
|
12
|
+
* const command = new GetExAbsCurrentMC();
|
|
13
13
|
*
|
|
14
14
|
* // output command binary in hex representation
|
|
15
15
|
* console.log(command.toHex());
|
|
16
16
|
* // 1f 0f 00
|
|
17
17
|
* ```
|
|
18
|
-
*
|
|
18
|
+
*
|
|
19
|
+
* [Command format documentation](https://github.com/jooby-dev/jooby-docs/blob/main/docs/commands/GetExAbsCurrentMC.md#request)
|
|
19
20
|
*/
|
|
20
|
-
class
|
|
21
|
+
class GetExAbsCurrentMC extends Command {
|
|
21
22
|
constructor() {
|
|
22
23
|
super();
|
|
23
24
|
}
|
|
24
25
|
// data - only body (without header)
|
|
25
26
|
static fromBytes() {
|
|
26
|
-
return new
|
|
27
|
+
return new GetExAbsCurrentMC();
|
|
27
28
|
}
|
|
28
29
|
// returns full message - header with body
|
|
29
30
|
// eslint-disable-next-line class-methods-use-this
|
|
@@ -31,8 +32,8 @@ class ExAbsCurrentMC extends Command {
|
|
|
31
32
|
return Command.toBytes(COMMAND_ID);
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
export default
|
|
38
|
-
//# sourceMappingURL=
|
|
35
|
+
GetExAbsCurrentMC.id = COMMAND_ID;
|
|
36
|
+
GetExAbsCurrentMC.directionType = DOWNLINK;
|
|
37
|
+
GetExAbsCurrentMC.hasParameters = false;
|
|
38
|
+
export default GetExAbsCurrentMC;
|
|
39
|
+
//# sourceMappingURL=GetExAbsCurrentMC.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetExAbsCurrentMC.js","sourceRoot":"","sources":["../../../src/commands/downlink/GetExAbsCurrentMC.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,kBAAkB,CAAC;AACvC,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AAGvD,0CAA0C;AAC1C,MAAM,UAAU,GAAG,MAAM,CAAC;AAG1B;;;;;;;;;;;;;;;GAeG;AACH,MAAM,iBAAkB,SAAQ,OAAO;IACnC;QACI,KAAK,EAAE,CAAC;IACZ,CAAC;IAUD,oCAAoC;IACpC,MAAM,CAAC,SAAS;QACZ,OAAO,IAAI,iBAAiB,EAAE,CAAC;IACnC,CAAC;IAED,0CAA0C;IAC1C,kDAAkD;IAClD,OAAO;QACH,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IACvC,CAAC;;AAhBe,oBAAE,GAAG,UAAU,CAAC;AAEhB,+BAAa,GAAG,QAAQ,CAAC;AAEzB,+BAAa,GAAG,KAAK,CAAC;AAgB1C,eAAe,iBAAiB,CAAC"}
|
|
@@ -4,22 +4,23 @@ import Command, { TCommandExampleList } from '../../Command.js';
|
|
|
4
4
|
*
|
|
5
5
|
* @example
|
|
6
6
|
* ```js
|
|
7
|
-
* import
|
|
7
|
+
* import GetLmicInfo from 'jooby-codec/commands/downlink/GetLmicInfo';
|
|
8
8
|
*
|
|
9
|
-
* const command = new
|
|
9
|
+
* const command = new GetLmicInfo();
|
|
10
10
|
*
|
|
11
11
|
* // output command binary in hex representation
|
|
12
12
|
* console.log(command.toHex());
|
|
13
13
|
* // 1f 02 00
|
|
14
14
|
* ```
|
|
15
|
-
*
|
|
15
|
+
*
|
|
16
|
+
* [Command format documentation](https://github.com/jooby-dev/jooby-docs/blob/main/docs/commands/GetLmicInfo.md#request)
|
|
16
17
|
*/
|
|
17
|
-
declare class
|
|
18
|
+
declare class GetLmicInfo extends Command {
|
|
18
19
|
static readonly id = 543;
|
|
19
20
|
static readonly directionType = 1;
|
|
20
21
|
static readonly examples: TCommandExampleList;
|
|
21
22
|
static readonly hasParameters = false;
|
|
22
|
-
static fromBytes():
|
|
23
|
+
static fromBytes(): GetLmicInfo;
|
|
23
24
|
toBytes(): Uint8Array;
|
|
24
25
|
}
|
|
25
|
-
export default
|
|
26
|
+
export default GetLmicInfo;
|
|
@@ -12,20 +12,21 @@ const examples = [
|
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* ```js
|
|
15
|
-
* import
|
|
15
|
+
* import GetLmicInfo from 'jooby-codec/commands/downlink/GetLmicInfo';
|
|
16
16
|
*
|
|
17
|
-
* const command = new
|
|
17
|
+
* const command = new GetLmicInfo();
|
|
18
18
|
*
|
|
19
19
|
* // output command binary in hex representation
|
|
20
20
|
* console.log(command.toHex());
|
|
21
21
|
* // 1f 02 00
|
|
22
22
|
* ```
|
|
23
|
-
*
|
|
23
|
+
*
|
|
24
|
+
* [Command format documentation](https://github.com/jooby-dev/jooby-docs/blob/main/docs/commands/GetLmicInfo.md#request)
|
|
24
25
|
*/
|
|
25
|
-
class
|
|
26
|
+
class GetLmicInfo extends Command {
|
|
26
27
|
// data - only body (without header)
|
|
27
28
|
static fromBytes() {
|
|
28
|
-
return new
|
|
29
|
+
return new GetLmicInfo();
|
|
29
30
|
}
|
|
30
31
|
// returns full message - header with body
|
|
31
32
|
// eslint-disable-next-line class-methods-use-this
|
|
@@ -33,9 +34,9 @@ class GetLmicVersion extends Command {
|
|
|
33
34
|
return Command.toBytes(COMMAND_ID);
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
export default
|
|
41
|
-
//# sourceMappingURL=
|
|
37
|
+
GetLmicInfo.id = COMMAND_ID;
|
|
38
|
+
GetLmicInfo.directionType = DOWNLINK;
|
|
39
|
+
GetLmicInfo.examples = examples;
|
|
40
|
+
GetLmicInfo.hasParameters = false;
|
|
41
|
+
export default GetLmicInfo;
|
|
42
|
+
//# sourceMappingURL=GetLmicInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetLmicInfo.js","sourceRoot":"","sources":["../../../src/commands/downlink/GetLmicInfo.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AAGvD,MAAM,UAAU,GAAG,MAAM,CAAC;AAE1B,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,gBAAgB;QACtB,GAAG,EAAE,EAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,EAAC;KACtC;CACJ,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAY,SAAQ,OAAO;IAU7B,oCAAoC;IACpC,MAAM,CAAC,SAAS;QACZ,OAAO,IAAI,WAAW,EAAE,CAAC;IAC7B,CAAC;IAED,0CAA0C;IAC1C,kDAAkD;IAClD,OAAO;QACH,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IACvC,CAAC;;AAlBe,cAAE,GAAG,UAAU,CAAC;AAEhB,yBAAa,GAAG,QAAQ,CAAC;AAEzB,oBAAQ,GAAG,QAAQ,CAAC;AAEpB,yBAAa,GAAG,KAAK,CAAC;AAgB1C,eAAe,WAAW,CAAC"}
|
|
@@ -2,7 +2,7 @@ import Command, { TCommandExampleList } from '../../Command.js';
|
|
|
2
2
|
/**
|
|
3
3
|
* GetParameter command parameters
|
|
4
4
|
*/
|
|
5
|
-
interface
|
|
5
|
+
interface IGetParameterParameters {
|
|
6
6
|
/**
|
|
7
7
|
* Parameter id - one of `constants/deviceParameters`.
|
|
8
8
|
*/
|
|
@@ -22,11 +22,12 @@ interface IDownlinkGetParameterParameters {
|
|
|
22
22
|
* console.log(command.toHex());
|
|
23
23
|
* // 04 01 17
|
|
24
24
|
* ```
|
|
25
|
+
*
|
|
25
26
|
* [Command format documentation](https://github.com/jooby-dev/jooby-docs/blob/main/docs/commands/GetParameter.md#request)
|
|
26
27
|
*/
|
|
27
28
|
declare class GetParameter extends Command {
|
|
28
|
-
parameters:
|
|
29
|
-
constructor(parameters:
|
|
29
|
+
parameters: IGetParameterParameters;
|
|
30
|
+
constructor(parameters: IGetParameterParameters);
|
|
30
31
|
static readonly id = 4;
|
|
31
32
|
static readonly directionType = 1;
|
|
32
33
|
static readonly examples: TCommandExampleList;
|
|
@@ -8,18 +8,12 @@ const examples = [
|
|
|
8
8
|
{
|
|
9
9
|
name: 'request initial data from device',
|
|
10
10
|
parameters: { id: deviceParameters.INITIAL_DATA },
|
|
11
|
-
hex: {
|
|
12
|
-
header: '04 01',
|
|
13
|
-
body: '17'
|
|
14
|
-
}
|
|
11
|
+
hex: { header: '04 01', body: '17' }
|
|
15
12
|
},
|
|
16
13
|
{
|
|
17
14
|
name: 'request for data type sending from device',
|
|
18
15
|
parameters: { id: deviceParameters.ABSOLUTE_DATA_STATUS },
|
|
19
|
-
hex: {
|
|
20
|
-
header: '04 01',
|
|
21
|
-
body: '18'
|
|
22
|
-
}
|
|
16
|
+
hex: { header: '04 01', body: '18' }
|
|
23
17
|
}
|
|
24
18
|
];
|
|
25
19
|
/**
|
|
@@ -36,6 +30,7 @@ const examples = [
|
|
|
36
30
|
* console.log(command.toHex());
|
|
37
31
|
* // 04 01 17
|
|
38
32
|
* ```
|
|
33
|
+
*
|
|
39
34
|
* [Command format documentation](https://github.com/jooby-dev/jooby-docs/blob/main/docs/commands/GetParameter.md#request)
|
|
40
35
|
*/
|
|
41
36
|
class GetParameter extends Command {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetParameter.js","sourceRoot":"","sources":["../../../src/commands/downlink/GetParameter.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AACvD,OAAO,KAAK,gBAAgB,MAAM,qCAAqC,CAAC;AAcxE,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAE5B,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,kCAAkC;QACxC,UAAU,EAAE,EAAC,EAAE,EAAE,gBAAgB,CAAC,YAAY,EAAC;QAC/C,GAAG,EAAE
|
|
1
|
+
{"version":3,"file":"GetParameter.js","sourceRoot":"","sources":["../../../src/commands/downlink/GetParameter.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AACvD,OAAO,KAAK,gBAAgB,MAAM,qCAAqC,CAAC;AAcxE,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAE5B,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,kCAAkC;QACxC,UAAU,EAAE,EAAC,EAAE,EAAE,gBAAgB,CAAC,YAAY,EAAC;QAC/C,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAC;KACrC;IACD;QACI,IAAI,EAAE,2CAA2C;QACjD,UAAU,EAAE,EAAC,EAAE,EAAE,gBAAgB,CAAC,oBAAoB,EAAC;QACvD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAC;KACrC;CACJ,CAAC;AAGF;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,YAAa,SAAQ,OAAO;IAC9B,YAAqB,UAAmC;QACpD,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAyB;IAExD,CAAC;IAYD,oCAAoC;IACpC,MAAM,CAAC,SAAS,CAAG,IAAgB;QAC/B,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAE7C,OAAO,IAAI,YAAY,CAAC,EAAC,EAAE,EAAE,MAAM,CAAC,QAAQ,EAAE,EAAC,CAAC,CAAC;IACrD,CAAC;IAED,0CAA0C;IAC1C,kDAAkD;IAClD,OAAO;QACH,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,iBAAiB,CAAC,CAAC;QAE1D,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;QAEpC,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AAxBe,eAAE,GAAG,UAAU,CAAC;AAEhB,0BAAa,GAAG,QAAQ,CAAC;AAEzB,qBAAQ,GAAG,QAAQ,CAAC;AAEpB,0BAAa,GAAG,IAAI,CAAC;AAsBzC,eAAe,YAAY,CAAC"}
|
|
@@ -1,25 +1,27 @@
|
|
|
1
|
-
import Command from '../../Command.js';
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
2
|
/**
|
|
3
3
|
* Downlink command.
|
|
4
4
|
*
|
|
5
5
|
* @example
|
|
6
6
|
* ```js
|
|
7
|
-
* import
|
|
7
|
+
* import GetStatus from 'jooby-codec/commands/downlink/GetStatus';
|
|
8
8
|
*
|
|
9
|
-
* const command = new
|
|
9
|
+
* const command = new GetStatus();
|
|
10
10
|
*
|
|
11
11
|
* // output command binary in hex representation
|
|
12
12
|
* console.log(command.toHex());
|
|
13
13
|
* // 14 00
|
|
14
14
|
* ```
|
|
15
|
-
*
|
|
15
|
+
*
|
|
16
|
+
* [Command format documentation](https://github.com/jooby-dev/jooby-docs/blob/main/docs/commands/GetStatus.md#request)
|
|
16
17
|
*/
|
|
17
|
-
declare class
|
|
18
|
+
declare class GetStatus extends Command {
|
|
18
19
|
constructor();
|
|
19
20
|
static readonly id = 20;
|
|
20
21
|
static readonly directionType = 1;
|
|
22
|
+
static readonly examples: TCommandExampleList;
|
|
21
23
|
static readonly hasParameters = false;
|
|
22
|
-
static fromBytes():
|
|
24
|
+
static fromBytes(): GetStatus;
|
|
23
25
|
toBytes(): Uint8Array;
|
|
24
26
|
}
|
|
25
|
-
export default
|
|
27
|
+
export default GetStatus;
|
|
@@ -1,28 +1,35 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
2
|
import { DOWNLINK } from '../../constants/directions.js';
|
|
3
3
|
const COMMAND_ID = 0x14;
|
|
4
|
+
const examples = [
|
|
5
|
+
{
|
|
6
|
+
name: 'simple request',
|
|
7
|
+
hex: { header: '14 00', body: '' }
|
|
8
|
+
}
|
|
9
|
+
];
|
|
4
10
|
/**
|
|
5
11
|
* Downlink command.
|
|
6
12
|
*
|
|
7
13
|
* @example
|
|
8
14
|
* ```js
|
|
9
|
-
* import
|
|
15
|
+
* import GetStatus from 'jooby-codec/commands/downlink/GetStatus';
|
|
10
16
|
*
|
|
11
|
-
* const command = new
|
|
17
|
+
* const command = new GetStatus();
|
|
12
18
|
*
|
|
13
19
|
* // output command binary in hex representation
|
|
14
20
|
* console.log(command.toHex());
|
|
15
21
|
* // 14 00
|
|
16
22
|
* ```
|
|
17
|
-
*
|
|
23
|
+
*
|
|
24
|
+
* [Command format documentation](https://github.com/jooby-dev/jooby-docs/blob/main/docs/commands/GetStatus.md#request)
|
|
18
25
|
*/
|
|
19
|
-
class
|
|
26
|
+
class GetStatus extends Command {
|
|
20
27
|
constructor() {
|
|
21
28
|
super();
|
|
22
29
|
}
|
|
23
30
|
// data - only body (without header)
|
|
24
31
|
static fromBytes() {
|
|
25
|
-
return new
|
|
32
|
+
return new GetStatus();
|
|
26
33
|
}
|
|
27
34
|
// returns full message - header with body
|
|
28
35
|
// eslint-disable-next-line class-methods-use-this
|
|
@@ -30,8 +37,9 @@ class NewStatus extends Command {
|
|
|
30
37
|
return Command.toBytes(COMMAND_ID);
|
|
31
38
|
}
|
|
32
39
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
40
|
+
GetStatus.id = COMMAND_ID;
|
|
41
|
+
GetStatus.directionType = DOWNLINK;
|
|
42
|
+
GetStatus.examples = examples;
|
|
43
|
+
GetStatus.hasParameters = false;
|
|
44
|
+
export default GetStatus;
|
|
45
|
+
//# sourceMappingURL=GetStatus.js.map
|