jooby-codec 1.8.0 → 1.10.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 +108 -9
- package/dist/CommandBinaryBuffer.js +235 -31
- 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 +10 -12
- package/dist/commands/downlink/GetArchiveDaysMC.js +15 -3
- 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 +12 -10
- package/dist/commands/downlink/GetArchiveHoursMC.js +15 -3
- 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/GetExAbsArchiveDaysMC.d.ts +41 -0
- package/dist/commands/downlink/{ExAbsArchiveDaysMC.js → GetExAbsArchiveDaysMC.js} +26 -13
- package/dist/commands/downlink/GetExAbsArchiveDaysMC.js.map +1 -0
- package/dist/commands/downlink/GetExAbsArchiveHoursMC.d.ts +40 -0
- package/dist/commands/downlink/{ExAbsArchiveHoursMC.js → GetExAbsArchiveHoursMC.js} +24 -12
- 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/GetStatus.d.ts +1 -0
- package/dist/commands/downlink/GetStatus.js +1 -1
- package/dist/commands/downlink/GetStatus.js.map +1 -1
- 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 +4 -4
- package/dist/commands/downlink/index.js +4 -4
- 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 +40 -0
- package/dist/commands/uplink/{GetCurrentMC.js → CurrentMC.js} +27 -27
- package/dist/commands/uplink/CurrentMC.js.map +1 -0
- package/dist/commands/uplink/DayMC.d.ts +47 -0
- package/dist/commands/uplink/DayMC.js +86 -0
- package/dist/commands/uplink/DayMC.js.map +1 -0
- package/dist/commands/uplink/ExAbsCurrentMC.d.ts +30 -4
- package/dist/commands/uplink/ExAbsCurrentMC.js +44 -0
- package/dist/commands/uplink/ExAbsCurrentMC.js.map +1 -1
- package/dist/commands/uplink/ExAbsDayMC.d.ts +30 -2
- package/dist/commands/uplink/ExAbsDayMC.js +48 -2
- package/dist/commands/uplink/ExAbsDayMC.js.map +1 -1
- package/dist/commands/uplink/ExAbsHourMC.d.ts +17 -12
- package/dist/commands/uplink/ExAbsHourMC.js +33 -10
- 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 +50 -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/HourMC.d.ts +48 -0
- package/dist/commands/uplink/{DataHourMC.js → HourMC.js} +55 -10
- package/dist/commands/uplink/HourMC.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 +18 -12
- 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/{GetStatus.d.ts → Status.d.ts} +19 -21
- package/dist/commands/uplink/{GetStatus.js → Status.js} +31 -37
- 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 +14 -14
- package/dist/commands/uplink/index.js +14 -14
- package/dist/commands/uplink/index.js.map +1 -1
- package/dist/constants/deviceParameters.d.ts +14 -0
- package/dist/constants/deviceParameters.js +14 -0
- 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 +1 -0
- package/dist/constants/index.js +1 -0
- 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 +4 -1
- package/readme.md +4 -4
- package/dist/commands/downlink/ExAbsArchiveDaysMC.d.ts +0 -42
- package/dist/commands/downlink/ExAbsArchiveDaysMC.js.map +0 -1
- package/dist/commands/downlink/ExAbsArchiveHoursMC.d.ts +0 -42
- 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/uplink/CorrectTime2000.d.ts +0 -37
- package/dist/commands/uplink/CorrectTime2000.js.map +0 -1
- package/dist/commands/uplink/DataDayMC.d.ts +0 -18
- package/dist/commands/uplink/DataDayMC.js +0 -43
- package/dist/commands/uplink/DataDayMC.js.map +0 -1
- package/dist/commands/uplink/DataHourMC.d.ts +0 -18
- package/dist/commands/uplink/DataHourMC.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/GetStatus.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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Status.js","sourceRoot":"","sources":["../../../src/commands/uplink/Status.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAsC,MAAM,8BAA8B,CAAC;AAClF,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,KAAK,aAAa,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AA4CrD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,qBAAqB,GAAG,EAAE,CAAC;AACjC,MAAM,0BAA0B,GAAG,KAAK,CAAC;AAEzC,mCAAmC;AACnC,MAAM,wBAAwB,GAAG,GAAG,CAAC;AAErC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,kBAAkB;QACxB,UAAU,EAAE;YACR,QAAQ,EAAE,EAAC,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAC;YAChC,QAAQ,EAAE,EAAC,IAAI,EAAE,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,EAAC;YACjD,IAAI,EAAE;gBACF,cAAc,EAAE,EAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC;gBACvC,yBAAyB,EAAE,KAAK;gBAChC,WAAW,EAAE,EAAE;gBACf,wBAAwB,EAAE,EAAE;gBAC5B,uBAAuB,EAAE,EAAE;aAC9B;SACJ;QACD,GAAG,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I,MAAM,IAAI,KAAK,CAAC,GAAG,MAAM,CAAC,KAAK,EAAE,mBAAmB,QAAQ,CAAC,IAAI,mBAAmB,CAAC,CAAC;SAC7F;QAED,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,gBAAgB,EAAE,CAAC,CAAC;IAClE,CAAC;;AA7Ge,SAAE,GAAG,UAAU,CAAC;AAEhB,oBAAa,GAAG,MAAM,CAAC;AAEvB,eAAQ,GAAG,QAAQ,CAAC;AAEpB,oBAAa,GAAG,IAAI,CAAC;AA2GzC,eAAe,MAAM,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Command from '../../Command.js';
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
2
|
import { TTime2000 } from '../../utils/time.js';
|
|
3
3
|
/**
|
|
4
4
|
* Time2000 command parameters
|
|
@@ -15,18 +15,19 @@ interface ITime2000Parameters {
|
|
|
15
15
|
/**
|
|
16
16
|
* Uplink command.
|
|
17
17
|
*
|
|
18
|
-
* @example
|
|
18
|
+
* @example create command instance from command body hex dump
|
|
19
19
|
* ```js
|
|
20
|
-
* import
|
|
20
|
+
* import CorrectTime2000Response from 'jooby-codec/commands/uplink/CorrectTime2000Response';
|
|
21
21
|
*
|
|
22
|
-
* //
|
|
23
|
-
* const
|
|
24
|
-
* const command =
|
|
22
|
+
* // failure
|
|
23
|
+
* const commandBody = new Uint8Array([0x4d, 0x2b, 0xbd, 0x98, 0xad]);
|
|
24
|
+
* const command = CorrectTime2000Response.fromBytes(commandBody);
|
|
25
25
|
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
26
|
+
* console.log(command.parameters);
|
|
27
|
+
* // output:
|
|
28
|
+
* {sequenceNumber: 77, time: 733845677}
|
|
29
29
|
* ```
|
|
30
|
+
*
|
|
30
31
|
* [Command format documentation](https://github.com/jooby-dev/jooby-docs/blob/main/docs/commands/uplink/Time2000.md)
|
|
31
32
|
*/
|
|
32
33
|
declare class Time2000 extends Command {
|
|
@@ -34,6 +35,7 @@ declare class Time2000 extends Command {
|
|
|
34
35
|
constructor(parameters: ITime2000Parameters);
|
|
35
36
|
static readonly id = 9;
|
|
36
37
|
static readonly directionType = 2;
|
|
38
|
+
static readonly examples: TCommandExampleList;
|
|
37
39
|
static readonly hasParameters = true;
|
|
38
40
|
static fromBytes(data: Uint8Array): Time2000;
|
|
39
41
|
toBytes(): Uint8Array;
|
|
@@ -3,21 +3,30 @@ import CommandBinaryBuffer from '../../CommandBinaryBuffer.js';
|
|
|
3
3
|
import { UPLINK } from '../../constants/directions.js';
|
|
4
4
|
const COMMAND_ID = 0x09;
|
|
5
5
|
const COMMAND_BODY_SIZE = 5;
|
|
6
|
+
const examples = [
|
|
7
|
+
{
|
|
8
|
+
name: '',
|
|
9
|
+
// time: 2023-04-03T14:01:17.000Z
|
|
10
|
+
parameters: { sequenceNumber: 77, time: 733845677 },
|
|
11
|
+
hex: { header: '09 05', body: '4d 2b bd 98 ad' }
|
|
12
|
+
}
|
|
13
|
+
];
|
|
6
14
|
/**
|
|
7
15
|
* Uplink command.
|
|
8
16
|
*
|
|
9
|
-
* @example
|
|
17
|
+
* @example create command instance from command body hex dump
|
|
10
18
|
* ```js
|
|
11
|
-
* import
|
|
19
|
+
* import CorrectTime2000Response from 'jooby-codec/commands/uplink/CorrectTime2000Response';
|
|
12
20
|
*
|
|
13
|
-
* //
|
|
14
|
-
* const
|
|
15
|
-
* const command =
|
|
21
|
+
* // failure
|
|
22
|
+
* const commandBody = new Uint8Array([0x4d, 0x2b, 0xbd, 0x98, 0xad]);
|
|
23
|
+
* const command = CorrectTime2000Response.fromBytes(commandBody);
|
|
16
24
|
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
25
|
+
* console.log(command.parameters);
|
|
26
|
+
* // output:
|
|
27
|
+
* {sequenceNumber: 77, time: 733845677}
|
|
20
28
|
* ```
|
|
29
|
+
*
|
|
21
30
|
* [Command format documentation](https://github.com/jooby-dev/jooby-docs/blob/main/docs/commands/uplink/Time2000.md)
|
|
22
31
|
*/
|
|
23
32
|
class Time2000 extends Command {
|
|
@@ -51,6 +60,7 @@ class Time2000 extends Command {
|
|
|
51
60
|
}
|
|
52
61
|
Time2000.id = COMMAND_ID;
|
|
53
62
|
Time2000.directionType = UPLINK;
|
|
63
|
+
Time2000.examples = examples;
|
|
54
64
|
Time2000.hasParameters = true;
|
|
55
65
|
export default Time2000;
|
|
56
66
|
//# sourceMappingURL=Time2000.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Time2000.js","sourceRoot":"","sources":["../../../src/commands/uplink/Time2000.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Time2000.js","sourceRoot":"","sources":["../../../src/commands/uplink/Time2000.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAkBrD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAE5B,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,EAAE;QACR,iCAAiC;QACjC,UAAU,EAAE,EAAC,cAAc,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAC;QACjD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAC;KACjD;CACJ,CAAC;AAGF;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,QAAS,SAAQ,OAAO;IAC1B,YAAqB,UAA+B;QAChD,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAqB;IAEpD,CAAC;IAYD,oCAAoC;IACpC,MAAM,CAAC,SAAS,CAAG,IAAgB;QAC/B,IAAK,IAAI,CAAC,UAAU,KAAK,iBAAiB,EAAG;YACzC,MAAM,IAAI,KAAK,CAAC,GAAG,IAAI,CAAC,OAAO,EAAE,wBAAwB,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC;SAChF;QAED,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAC7C,MAAM,UAAU,GAAG;YACf,cAAc,EAAE,MAAM,CAAC,QAAQ,EAAE;YACjC,IAAI,EAAE,MAAM,CAAC,OAAO,EAAE;SACzB,CAAC;QAEF,IAAK,CAAC,MAAM,CAAC,OAAO,EAAG;YACnB,MAAM,IAAI,KAAK,CAAC,GAAG,IAAI,CAAC,OAAO,EAAE,8BAA8B,CAAC,CAAC;SACpE;QAED,OAAO,IAAI,QAAQ,CAAC,UAAU,CAAC,CAAC;IACpC,CAAC;IAED,0CAA0C;IAC1C,OAAO;QACH,MAAM,EAAC,cAAc,EAAE,IAAI,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAC/C,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,iBAAiB,CAAC,CAAC;QAE1D,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;QAChC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAErB,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AArCe,WAAE,GAAG,UAAU,CAAC;AAEhB,sBAAa,GAAG,MAAM,CAAC;AAEvB,iBAAQ,GAAG,QAAQ,CAAC;AAEpB,sBAAa,GAAG,IAAI,CAAC;AAmCzC,eAAe,QAAQ,CAAC"}
|
|
@@ -3,23 +3,23 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @packageDocumentation
|
|
5
5
|
*/
|
|
6
|
-
export { default as
|
|
7
|
-
export { default as
|
|
8
|
-
export { default as
|
|
9
|
-
export { default as ExAbsArchiveDaysMC } from './ExAbsArchiveDaysMC.js';
|
|
10
|
-
export { default as ExAbsArchiveHoursMC } from './ExAbsArchiveHoursMC.js';
|
|
6
|
+
export { default as CorrectTime2000Response } from './CorrectTime2000Response.js';
|
|
7
|
+
export { default as CurrentMC } from './CurrentMC.js';
|
|
8
|
+
export { default as DayMC } from './DayMC.js';
|
|
11
9
|
export { default as ExAbsCurrentMC } from './ExAbsCurrentMC.js';
|
|
12
10
|
export { default as ExAbsDayMC } from './ExAbsDayMC.js';
|
|
13
11
|
export { default as ExAbsHourMC } from './ExAbsHourMC.js';
|
|
14
|
-
export { default as
|
|
15
|
-
export { default as
|
|
16
|
-
export { default as
|
|
17
|
-
export { default as
|
|
18
|
-
export { default as
|
|
19
|
-
export { default as
|
|
20
|
-
export { default as
|
|
12
|
+
export { default as GetArchiveDaysMCResponse } from './GetArchiveDaysMCResponse.js';
|
|
13
|
+
export { default as GetArchiveEventsResponse } from './GetArchiveEventsResponse.js';
|
|
14
|
+
export { default as GetArchiveHoursMCResponse } from './GetArchiveHoursMCResponse.js';
|
|
15
|
+
export { default as GetExAbsArchiveDaysMCResponse } from './GetExAbsArchiveDaysMCResponse.js';
|
|
16
|
+
export { default as GetExAbsArchiveHoursMCResponse } from './GetExAbsArchiveHoursMCResponse.js';
|
|
17
|
+
export { default as GetLmicInfoResponse } from './GetLmicInfoResponse.js';
|
|
18
|
+
export { default as GetParameterResponse } from './GetParameterResponse.js';
|
|
19
|
+
export { default as HourMC } from './HourMC.js';
|
|
21
20
|
export { default as LastEvent } from './LastEvent.js';
|
|
22
21
|
export { default as NewEvent } from './NewEvent.js';
|
|
23
|
-
export { default as
|
|
24
|
-
export { default as
|
|
22
|
+
export { default as SetTime2000Response } from './SetTime2000Response.js';
|
|
23
|
+
export { default as SoftRestartResponse } from './SoftRestartResponse.js';
|
|
24
|
+
export { default as Status } from './Status.js';
|
|
25
25
|
export { default as Time2000 } from './Time2000.js';
|
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @packageDocumentation
|
|
5
5
|
*/
|
|
6
|
-
export { default as
|
|
7
|
-
export { default as
|
|
8
|
-
export { default as
|
|
9
|
-
export { default as ExAbsArchiveDaysMC } from './ExAbsArchiveDaysMC.js';
|
|
10
|
-
export { default as ExAbsArchiveHoursMC } from './ExAbsArchiveHoursMC.js';
|
|
6
|
+
export { default as CorrectTime2000Response } from './CorrectTime2000Response.js';
|
|
7
|
+
export { default as CurrentMC } from './CurrentMC.js';
|
|
8
|
+
export { default as DayMC } from './DayMC.js';
|
|
11
9
|
export { default as ExAbsCurrentMC } from './ExAbsCurrentMC.js';
|
|
12
10
|
export { default as ExAbsDayMC } from './ExAbsDayMC.js';
|
|
13
11
|
export { default as ExAbsHourMC } from './ExAbsHourMC.js';
|
|
14
|
-
export { default as
|
|
15
|
-
export { default as
|
|
16
|
-
export { default as
|
|
17
|
-
export { default as
|
|
18
|
-
export { default as
|
|
19
|
-
export { default as
|
|
20
|
-
export { default as
|
|
12
|
+
export { default as GetArchiveDaysMCResponse } from './GetArchiveDaysMCResponse.js';
|
|
13
|
+
export { default as GetArchiveEventsResponse } from './GetArchiveEventsResponse.js';
|
|
14
|
+
export { default as GetArchiveHoursMCResponse } from './GetArchiveHoursMCResponse.js';
|
|
15
|
+
export { default as GetExAbsArchiveDaysMCResponse } from './GetExAbsArchiveDaysMCResponse.js';
|
|
16
|
+
export { default as GetExAbsArchiveHoursMCResponse } from './GetExAbsArchiveHoursMCResponse.js';
|
|
17
|
+
export { default as GetLmicInfoResponse } from './GetLmicInfoResponse.js';
|
|
18
|
+
export { default as GetParameterResponse } from './GetParameterResponse.js';
|
|
19
|
+
export { default as HourMC } from './HourMC.js';
|
|
21
20
|
export { default as LastEvent } from './LastEvent.js';
|
|
22
21
|
export { default as NewEvent } from './NewEvent.js';
|
|
23
|
-
export { default as
|
|
24
|
-
export { default as
|
|
22
|
+
export { default as SetTime2000Response } from './SetTime2000Response.js';
|
|
23
|
+
export { default as SoftRestartResponse } from './SoftRestartResponse.js';
|
|
24
|
+
export { default as Status } from './Status.js';
|
|
25
25
|
export { default as Time2000 } from './Time2000.js';
|
|
26
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/uplink/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,OAAO,IAAI,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/uplink/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,OAAO,IAAI,uBAAuB,EAAC,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAC,OAAO,IAAI,UAAU,EAAC,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAC,OAAO,IAAI,wBAAwB,EAAC,MAAM,+BAA+B,CAAC;AAClF,OAAO,EAAC,OAAO,IAAI,wBAAwB,EAAC,MAAM,+BAA+B,CAAC;AAClF,OAAO,EAAC,OAAO,IAAI,yBAAyB,EAAC,MAAM,gCAAgC,CAAC;AACpF,OAAO,EAAC,OAAO,IAAI,6BAA6B,EAAC,MAAM,oCAAoC,CAAC;AAC5F,OAAO,EAAC,OAAO,IAAI,8BAA8B,EAAC,MAAM,qCAAqC,CAAC;AAC9F,OAAO,EAAC,OAAO,IAAI,mBAAmB,EAAC,MAAM,0BAA0B,CAAC;AACxE,OAAO,EAAC,OAAO,IAAI,oBAAoB,EAAC,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,eAAe,CAAC;AAClD,OAAO,EAAC,OAAO,IAAI,mBAAmB,EAAC,MAAM,0BAA0B,CAAC;AACxE,OAAO,EAAC,OAAO,IAAI,mBAAmB,EAAC,MAAM,0BAA0B,CAAC;AACxE,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,eAAe,CAAC"}
|
|
@@ -7,12 +7,26 @@ export declare const DATA_SENDING_INTERVAL = 1;
|
|
|
7
7
|
export declare const DAY_CHECKOUT_HOUR = 4;
|
|
8
8
|
/** type of device data sending */
|
|
9
9
|
export declare const OUTPUT_DATA_TYPE = 5;
|
|
10
|
+
/** type of priority data delivery, with confirmation or not */
|
|
11
|
+
export declare const DELIVERY_TYPE_OF_PRIORITY_DATA = 8;
|
|
10
12
|
/** device activation method */
|
|
11
13
|
export declare const ACTIVATION_METHOD = 9;
|
|
14
|
+
/** device battery depassivation information */
|
|
15
|
+
export declare const BATTERY_DEPASSIVATION_INFO = 10;
|
|
16
|
+
/** device battery minimum required battery load time per day to prevent passivation */
|
|
17
|
+
export declare const BATTERY_MINIMAL_LOAD_TIME = 11;
|
|
18
|
+
/** setup parameters for RX2 window config */
|
|
19
|
+
export declare const RX2_CONFIG = 18;
|
|
12
20
|
/** setup initial data for device, pulse counter, pulse coefficient, meter value */
|
|
13
21
|
export declare const INITIAL_DATA = 23;
|
|
14
22
|
/** status of device data sending, absolute value or pulse counter */
|
|
15
23
|
export declare const ABSOLUTE_DATA_STATUS = 24;
|
|
24
|
+
/** device serial number */
|
|
25
|
+
export declare const SERIAL_NUMBER = 25;
|
|
26
|
+
/** device geolocation */
|
|
27
|
+
export declare const GEOLOCATION = 26;
|
|
28
|
+
/** interval in seconds when device send EXTRA FRAME */
|
|
29
|
+
export declare const EXTRA_FRAME_INTERVAL = 28;
|
|
16
30
|
/** same as INITIAL_DATA for a specific channel */
|
|
17
31
|
export declare const INITIAL_DATA_MULTI_CHANNEL = 29;
|
|
18
32
|
/** status of device data sending, absolute value or pulse counter for a specific channel */
|
|
@@ -7,12 +7,26 @@ export const DATA_SENDING_INTERVAL = 1;
|
|
|
7
7
|
export const DAY_CHECKOUT_HOUR = 4;
|
|
8
8
|
/** type of device data sending */
|
|
9
9
|
export const OUTPUT_DATA_TYPE = 5;
|
|
10
|
+
/** type of priority data delivery, with confirmation or not */
|
|
11
|
+
export const DELIVERY_TYPE_OF_PRIORITY_DATA = 8;
|
|
10
12
|
/** device activation method */
|
|
11
13
|
export const ACTIVATION_METHOD = 9;
|
|
14
|
+
/** device battery depassivation information */
|
|
15
|
+
export const BATTERY_DEPASSIVATION_INFO = 10;
|
|
16
|
+
/** device battery minimum required battery load time per day to prevent passivation */
|
|
17
|
+
export const BATTERY_MINIMAL_LOAD_TIME = 11;
|
|
18
|
+
/** setup parameters for RX2 window config */
|
|
19
|
+
export const RX2_CONFIG = 18;
|
|
12
20
|
/** setup initial data for device, pulse counter, pulse coefficient, meter value */
|
|
13
21
|
export const INITIAL_DATA = 23;
|
|
14
22
|
/** status of device data sending, absolute value or pulse counter */
|
|
15
23
|
export const ABSOLUTE_DATA_STATUS = 24;
|
|
24
|
+
/** device serial number */
|
|
25
|
+
export const SERIAL_NUMBER = 25;
|
|
26
|
+
/** device geolocation */
|
|
27
|
+
export const GEOLOCATION = 26;
|
|
28
|
+
/** interval in seconds when device send EXTRA FRAME */
|
|
29
|
+
export const EXTRA_FRAME_INTERVAL = 28;
|
|
16
30
|
/** same as INITIAL_DATA for a specific channel */
|
|
17
31
|
export const INITIAL_DATA_MULTI_CHANNEL = 29;
|
|
18
32
|
/** status of device data sending, absolute value or pulse counter for a specific channel */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deviceParameters.js","sourceRoot":"","sources":["../../src/constants/deviceParameters.ts"],"names":[],"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,EAAE,CAAC;AAE/B,qEAAqE;AACrE,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAEvC,2BAA2B;AAC3B,MAAM,CAAC,MAAM,aAAa,GAAG,EAAE,CAAC;AAEhC,yBAAyB;AACzB,MAAM,CAAC,MAAM,WAAW,GAAG,EAAE,CAAC;AAE9B,uDAAuD;AACvD,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAEvC,kDAAkD;AAClD,MAAM,CAAC,MAAM,0BAA0B,GAAG,EAAE,CAAC;AAE7C,4FAA4F;AAC5F,MAAM,CAAC,MAAM,kCAAkC,GAAG,EAAE,CAAC"}
|
|
@@ -1,70 +1,98 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Gas RM based on CPU STM32L15x (no longer in production).
|
|
3
|
+
*
|
|
4
|
+
* Models:
|
|
5
|
+
* Jooby RM GM-E
|
|
6
|
+
* Jooby RM GM-M
|
|
3
7
|
*/
|
|
4
|
-
export declare const
|
|
8
|
+
export declare const GASI1 = 1;
|
|
5
9
|
/**
|
|
6
|
-
*
|
|
10
|
+
* Gas RM based on CPU STM32L05x (no longer in production).
|
|
11
|
+
*
|
|
12
|
+
* Models:
|
|
13
|
+
* Jooby RM GM-E
|
|
7
14
|
*/
|
|
8
|
-
export declare const
|
|
15
|
+
export declare const GASI2 = 2;
|
|
9
16
|
/**
|
|
10
|
-
*
|
|
17
|
+
* Gas RM based on CPU STM32L05x.
|
|
18
|
+
*
|
|
19
|
+
* Models:
|
|
20
|
+
* Jooby RM GM-E
|
|
21
|
+
* Jooby RM GM-M
|
|
22
|
+
* Jooby RM GM-S
|
|
23
|
+
* Jooby RM GM-E_ext
|
|
24
|
+
* Jooby RM GM-M_ext
|
|
25
|
+
* Jooby EPHIR RMS LoRaWAN GMSG10 105 EU
|
|
11
26
|
*/
|
|
12
|
-
export declare const
|
|
27
|
+
export declare const GASI3 = 3;
|
|
13
28
|
/**
|
|
14
|
-
* RM for
|
|
15
|
-
*
|
|
29
|
+
* RM for Novator based on CPU STM32WLE5.
|
|
16
30
|
* 2 channels
|
|
31
|
+
*
|
|
32
|
+
* Models:
|
|
33
|
+
* Jooby RM O-WM-N
|
|
34
|
+
* Jooby Aquaris RMS LoRaWAN WONO10 203 EU
|
|
17
35
|
*/
|
|
18
36
|
export declare const NOVATOR = 4;
|
|
19
37
|
/**
|
|
20
|
-
* RM with 2 ports
|
|
21
|
-
*
|
|
38
|
+
* RM with 2 pulse input ports based on CPU STM32L051 (no longer in production).
|
|
22
39
|
* 2 channels
|
|
23
40
|
*/
|
|
24
41
|
export declare const IMP2EU = 5;
|
|
25
42
|
/**
|
|
26
|
-
* RM with 4 ports, EU868.
|
|
27
|
-
*
|
|
43
|
+
* RM with 4 ports, EU868. Based on CPU STM32WLE5.
|
|
28
44
|
* 4 channels
|
|
45
|
+
*
|
|
46
|
+
* Models:
|
|
47
|
+
* Jooby RM 4PI
|
|
48
|
+
* Jooby OMNI RM LoRaWAN 4PI 200 EU
|
|
49
|
+
* Jooby OMNI RM LoRaWAN 4PI 202 EU
|
|
29
50
|
*/
|
|
30
51
|
export declare const IMP4EU = 6;
|
|
31
52
|
/**
|
|
32
53
|
* RM installed inside MTX meters.
|
|
54
|
+
* Based on STM32L051, STM32L071 (no longer in production) and STM32WLE5.
|
|
33
55
|
*/
|
|
34
56
|
export declare const MTXLORA = 7;
|
|
35
57
|
/**
|
|
36
|
-
* RM with 2 ports for the Asian region, AS923
|
|
58
|
+
* RM with 2 ports for the Asian region, AS923 (no longer in production).
|
|
37
59
|
*
|
|
38
60
|
* 2 channels
|
|
39
61
|
*/
|
|
40
62
|
export declare const IMP2AS = 8;
|
|
41
63
|
/**
|
|
42
|
-
* RM with 2 ports for the
|
|
64
|
+
* RM with 2 ports for the Indian region, IN865 (no longer in production).
|
|
43
65
|
*
|
|
44
66
|
* 2 channels
|
|
45
67
|
*/
|
|
46
68
|
export declare const IMP2IN = 9;
|
|
47
69
|
/**
|
|
48
|
-
* RM with 4 ports for the
|
|
70
|
+
* RM with 4 ports for the Indian region, IN865 (no longer in production).
|
|
49
71
|
*
|
|
50
72
|
* 4 channels
|
|
51
73
|
*/
|
|
52
74
|
export declare const IMP4IN = 10;
|
|
53
75
|
/**
|
|
54
|
-
* Single-port module with supply
|
|
55
|
-
*
|
|
76
|
+
* Single-port module with supply 220V. Class C. Based on CPU STM32WLE5.
|
|
56
77
|
* 1 channel
|
|
78
|
+
*
|
|
79
|
+
* Models:
|
|
80
|
+
* Jooby ELECTRA RM LoRaWAN 1PI 100 EU
|
|
57
81
|
*/
|
|
58
82
|
export declare const ELIMP = 11;
|
|
59
83
|
/**
|
|
60
|
-
*
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
*
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
*
|
|
84
|
+
* Gas RM based on CPU STM32WLE5.
|
|
85
|
+
*
|
|
86
|
+
* Models:
|
|
87
|
+
* Jooby RM GM-E
|
|
88
|
+
* Jooby EPHIR RMS LoRaWAN GMEL10 100 EU
|
|
89
|
+
* Jooby RM GM-M
|
|
90
|
+
* Jooby EPHIR RMS LoRaWAN GMME10 103 EU
|
|
91
|
+
* Jooby RM GM-E_ext
|
|
92
|
+
* Jooby EPHIR RMS LoRaWAN GMEL10 102 EU
|
|
93
|
+
* Jooby EPHIR RMS LoRaWAN GMEL10 106 EU
|
|
94
|
+
* Jooby RM GM-M_ext
|
|
95
|
+
* Jooby EPHIR RMS LoRaWAN GMME10 104 EU
|
|
96
|
+
* Jooby EPHIR RMS LoRaWAN GMME10 107 EU
|
|
69
97
|
*/
|
|
70
|
-
export declare const
|
|
98
|
+
export declare const GASIC = 12;
|
|
@@ -1,71 +1,99 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Gas RM based on CPU STM32L15x (no longer in production).
|
|
3
|
+
*
|
|
4
|
+
* Models:
|
|
5
|
+
* Jooby RM GM-E
|
|
6
|
+
* Jooby RM GM-M
|
|
3
7
|
*/
|
|
4
|
-
export const
|
|
8
|
+
export const GASI1 = 1;
|
|
5
9
|
/**
|
|
6
|
-
*
|
|
10
|
+
* Gas RM based on CPU STM32L05x (no longer in production).
|
|
11
|
+
*
|
|
12
|
+
* Models:
|
|
13
|
+
* Jooby RM GM-E
|
|
7
14
|
*/
|
|
8
|
-
export const
|
|
15
|
+
export const GASI2 = 2;
|
|
9
16
|
/**
|
|
10
|
-
*
|
|
17
|
+
* Gas RM based on CPU STM32L05x.
|
|
18
|
+
*
|
|
19
|
+
* Models:
|
|
20
|
+
* Jooby RM GM-E
|
|
21
|
+
* Jooby RM GM-M
|
|
22
|
+
* Jooby RM GM-S
|
|
23
|
+
* Jooby RM GM-E_ext
|
|
24
|
+
* Jooby RM GM-M_ext
|
|
25
|
+
* Jooby EPHIR RMS LoRaWAN GMSG10 105 EU
|
|
11
26
|
*/
|
|
12
|
-
export const
|
|
27
|
+
export const GASI3 = 3;
|
|
13
28
|
/**
|
|
14
|
-
* RM for
|
|
15
|
-
*
|
|
29
|
+
* RM for Novator based on CPU STM32WLE5.
|
|
16
30
|
* 2 channels
|
|
31
|
+
*
|
|
32
|
+
* Models:
|
|
33
|
+
* Jooby RM O-WM-N
|
|
34
|
+
* Jooby Aquaris RMS LoRaWAN WONO10 203 EU
|
|
17
35
|
*/
|
|
18
36
|
export const NOVATOR = 4;
|
|
19
37
|
/**
|
|
20
|
-
* RM with 2 ports
|
|
21
|
-
*
|
|
38
|
+
* RM with 2 pulse input ports based on CPU STM32L051 (no longer in production).
|
|
22
39
|
* 2 channels
|
|
23
40
|
*/
|
|
24
41
|
export const IMP2EU = 5;
|
|
25
42
|
/**
|
|
26
|
-
* RM with 4 ports, EU868.
|
|
27
|
-
*
|
|
43
|
+
* RM with 4 ports, EU868. Based on CPU STM32WLE5.
|
|
28
44
|
* 4 channels
|
|
45
|
+
*
|
|
46
|
+
* Models:
|
|
47
|
+
* Jooby RM 4PI
|
|
48
|
+
* Jooby OMNI RM LoRaWAN 4PI 200 EU
|
|
49
|
+
* Jooby OMNI RM LoRaWAN 4PI 202 EU
|
|
29
50
|
*/
|
|
30
51
|
export const IMP4EU = 6;
|
|
31
52
|
/**
|
|
32
53
|
* RM installed inside MTX meters.
|
|
54
|
+
* Based on STM32L051, STM32L071 (no longer in production) and STM32WLE5.
|
|
33
55
|
*/
|
|
34
56
|
export const MTXLORA = 7;
|
|
35
57
|
/**
|
|
36
|
-
* RM with 2 ports for the Asian region, AS923
|
|
58
|
+
* RM with 2 ports for the Asian region, AS923 (no longer in production).
|
|
37
59
|
*
|
|
38
60
|
* 2 channels
|
|
39
61
|
*/
|
|
40
62
|
export const IMP2AS = 8;
|
|
41
63
|
/**
|
|
42
|
-
* RM with 2 ports for the
|
|
64
|
+
* RM with 2 ports for the Indian region, IN865 (no longer in production).
|
|
43
65
|
*
|
|
44
66
|
* 2 channels
|
|
45
67
|
*/
|
|
46
68
|
export const IMP2IN = 9;
|
|
47
69
|
/**
|
|
48
|
-
* RM with 4 ports for the
|
|
70
|
+
* RM with 4 ports for the Indian region, IN865 (no longer in production).
|
|
49
71
|
*
|
|
50
72
|
* 4 channels
|
|
51
73
|
*/
|
|
52
74
|
export const IMP4IN = 10;
|
|
53
75
|
/**
|
|
54
|
-
* Single-port module with supply
|
|
55
|
-
*
|
|
76
|
+
* Single-port module with supply 220V. Class C. Based on CPU STM32WLE5.
|
|
56
77
|
* 1 channel
|
|
78
|
+
*
|
|
79
|
+
* Models:
|
|
80
|
+
* Jooby ELECTRA RM LoRaWAN 1PI 100 EU
|
|
57
81
|
*/
|
|
58
82
|
export const ELIMP = 11;
|
|
59
83
|
/**
|
|
60
|
-
*
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
*
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
*
|
|
84
|
+
* Gas RM based on CPU STM32WLE5.
|
|
85
|
+
*
|
|
86
|
+
* Models:
|
|
87
|
+
* Jooby RM GM-E
|
|
88
|
+
* Jooby EPHIR RMS LoRaWAN GMEL10 100 EU
|
|
89
|
+
* Jooby RM GM-M
|
|
90
|
+
* Jooby EPHIR RMS LoRaWAN GMME10 103 EU
|
|
91
|
+
* Jooby RM GM-E_ext
|
|
92
|
+
* Jooby EPHIR RMS LoRaWAN GMEL10 102 EU
|
|
93
|
+
* Jooby EPHIR RMS LoRaWAN GMEL10 106 EU
|
|
94
|
+
* Jooby RM GM-M_ext
|
|
95
|
+
* Jooby EPHIR RMS LoRaWAN GMME10 104 EU
|
|
96
|
+
* Jooby EPHIR RMS LoRaWAN GMME10 107 EU
|
|
69
97
|
*/
|
|
70
|
-
export const
|
|
98
|
+
export const GASIC = 12;
|
|
71
99
|
//# sourceMappingURL=hardwareTypes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hardwareTypes.js","sourceRoot":"","sources":["../../src/constants/hardwareTypes.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"hardwareTypes.js","sourceRoot":"","sources":["../../src/constants/hardwareTypes.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,CAAC;AAEvB;;;;;GAKG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,CAAC;AAEvB;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,CAAC;AAEvB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC;AAEzB;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,CAAC;AAExB;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,CAAC;AAExB;;;GAGG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC;AAEzB;;;;GAIG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,CAAC;AAExB;;;;GAIG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,CAAC;AAExB;;;;GAIG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,EAAE,CAAC;AAEzB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;AAExB;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC"}
|
package/dist/constants/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,aAAa,MAAM,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,aAAa,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Possible values of RX2 spread factor
|
|
3
|
+
*
|
|
4
|
+
* @packageDocumentation
|
|
5
|
+
*/
|
|
6
|
+
export declare const SF12B125 = 0;
|
|
7
|
+
export declare const SF11B125 = 1;
|
|
8
|
+
export declare const SF10B125 = 2;
|
|
9
|
+
export declare const SF9B125 = 3;
|
|
10
|
+
export declare const SF8B125 = 4;
|
|
11
|
+
export declare const SF7B125 = 5;
|
|
12
|
+
export declare const SF7B250 = 6;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Possible values of RX2 spread factor
|
|
3
|
+
*
|
|
4
|
+
* @packageDocumentation
|
|
5
|
+
*/
|
|
6
|
+
export const SF12B125 = 0;
|
|
7
|
+
export const SF11B125 = 1;
|
|
8
|
+
export const SF10B125 = 2;
|
|
9
|
+
export const SF9B125 = 3;
|
|
10
|
+
export const SF8B125 = 4;
|
|
11
|
+
export const SF7B125 = 5;
|
|
12
|
+
export const SF7B250 = 6;
|
|
13
|
+
//# sourceMappingURL=rx2SpreadFactors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rx2SpreadFactors.js","sourceRoot":"","sources":["../../src/constants/rx2SpreadFactors.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC;AAE1B,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC;AAE1B,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC;AAE1B,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC;AAEzB,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC;AAEzB,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC;AAEzB,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jooby-codec",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "Jooby message encoders/decoders",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
|
+
"repository": {
|
|
8
|
+
"url": "git+https://github.com/jooby-dev/jooby-codec"
|
|
9
|
+
},
|
|
7
10
|
"exports": {
|
|
8
11
|
".": "./dist/index.js",
|
|
9
12
|
"./commands": "./dist/commands/index.js",
|
package/readme.md
CHANGED
|
@@ -26,7 +26,7 @@ console.log(commands);
|
|
|
26
26
|
// all uplink commands
|
|
27
27
|
console.log(commands.uplink);
|
|
28
28
|
// one particular command
|
|
29
|
-
console.log(commands.uplink.
|
|
29
|
+
console.log(commands.uplink.CurrentMC);
|
|
30
30
|
|
|
31
31
|
// output main namespace for work with messages
|
|
32
32
|
console.log(message);
|
|
@@ -130,7 +130,7 @@ const messageBytes = message.toBytes([
|
|
|
130
130
|
or to get in a hex format:
|
|
131
131
|
|
|
132
132
|
```js
|
|
133
|
-
import
|
|
133
|
+
import DayMC from 'jooby-codec/commands/uplink/DayMC';
|
|
134
134
|
import LastEvent from 'jooby-codec/commands/uplink/LastEvent';
|
|
135
135
|
|
|
136
136
|
const commandInstancesArray = [
|
|
@@ -144,9 +144,9 @@ const commandInstancesArray = [
|
|
|
144
144
|
isMagneticInfluence: false
|
|
145
145
|
}
|
|
146
146
|
},
|
|
147
|
-
hardwareTypes.
|
|
147
|
+
hardwareTypes.GASI3
|
|
148
148
|
),
|
|
149
|
-
new
|
|
149
|
+
new DayMC({
|
|
150
150
|
startTime: 756604800,
|
|
151
151
|
channelList: [
|
|
152
152
|
{value: 131, index: 3},
|