61 Commits

Author SHA1 Message Date
f596a99ee6 Implement converter-stream point -> lineProtocol 2021-12-09 17:13:34 +01:00
d1cf1d8f7d Add connection-state tracking as getter 2021-12-09 17:12:59 +01:00
4e2ffec656 Fix typo 2021-12-09 17:12:42 +01:00
7f5e168fda Added missing autoReconnectBackoffTime 2021-12-09 17:12:35 +01:00
024305db43 Fixed host and port wrong way around 2021-12-09 17:12:11 +01:00
6b93a02943 Implement basic LineProtocolWriter 2021-12-09 15:47:26 +01:00
94846a48e1 Fix data-fields not getting added as tags 2021-12-06 13:32:21 +01:00
39350932a4 Changed metric- and tag-names to match best-practise naminc-convention 2021-12-06 12:46:04 +01:00
1e37f35e38 Moved creation of writeApi to main and set default-tag hostname 2021-12-06 12:44:26 +01:00
cc9e4c7258 Fix flush using local vars instead of this-vars 2021-12-02 13:41:23 +01:00
56ac283544 Refactored code to match code-style 2021-12-02 13:40:56 +01:00
9095e21e6f Add handshakeStage as metric 2021-12-01 14:24:03 +01:00
0d84079ce1 Added packetType to tag-fields 2021-11-29 14:20:29 +01:00
91c3aca9e2 Add function to get handshakeStage from keyInfo 2021-11-29 09:57:33 +01:00
8ff7211f0f Revert "Extract packetType handling in own function"
This reverts commit 227ba127f8218ea93e846d7a98cb629458301c6f.
2021-11-29 09:50:14 +01:00
2ae85ababb Extract keyInfo reading to helper-file 2021-11-29 09:37:28 +01:00
227ba127f8 Extract packetType handling in own function 2021-11-29 09:36:21 +01:00
8417de5756 Extract checks with if-statements 2021-11-29 09:35:17 +01:00
54eadf3bc3 Fixed Regex codesmells 2021-11-29 09:24:18 +01:00
54d627d469 Fix typo 2021-11-29 09:20:38 +01:00
4ad5eba7e0 Change tag-srtting to recursive by field
This will properly set e.g. arrays
2021-11-26 21:03:11 +01:00
2646c9787e Changed key-checking to value-checking
This includes e.g. gettings, originally not included in keys
2021-11-26 21:00:15 +01:00
44cd3288cf Fixed stram not being in object-mode 2021-11-26 17:33:19 +01:00
3af4bb7cc6 Fixed wrong push 2021-11-26 17:33:07 +01:00
2a662e0bd1 Changed constructor to take influxDb 2021-11-26 17:32:31 +01:00
d7a9530b68 Cleaned up Promise 2021-11-26 17:31:31 +01:00
bb3d843895 Fixed wrong joining 2021-11-25 18:42:45 +01:00
9472ed9198 Fix wrong usage of join()
Default splitter is ',' but we want nothing
2021-11-25 18:42:26 +01:00
d77e3f8844 Fixed naming 2021-11-25 18:30:50 +01:00
cf1b300f6a Changed documentation to remarks section 2021-11-25 03:14:24 +01:00
450f162cda Implemented InfluxPointWriter for writing into influx with stream 2021-11-25 03:13:05 +01:00
7ebcf573b9 Implemented stream to transform packets to datapoints 2021-11-25 02:54:43 +01:00
38985ea9e2 Remove debug-logging for now 2021-11-25 01:48:41 +01:00
1976838d8a Remove unecessary properties 2021-11-25 01:48:07 +01:00
a1ce7a848b Replaced MoreData and isRetry with flags 2021-11-25 01:37:35 +01:00
21e4ff1a66 Removing frameCheckSequence from packets 2021-11-25 01:10:49 +01:00
25297ed4d9 Fixed data-regex 2021-11-25 01:10:34 +01:00
68541b1191 Added check for NoData-Packet 2021-11-25 01:09:25 +01:00
7bc5a3530c Made keyInfo vars const 2021-11-25 00:21:25 +01:00
57394882cc Implemented reading keyExchangeData and determining handshake-number 2021-11-25 00:19:31 +01:00
d6135a02e9 Fixed regex 2021-11-25 00:18:21 +01:00
ffe14e3f53 Added hexConverter helper-module 2021-11-24 23:22:09 +01:00
09bea81058 Returning packet not to loose information 2021-11-24 23:13:35 +01:00
66c0fdfe12 Fixed Object.assign 2021-11-24 23:13:04 +01:00
b32b5cbed7 Changed regex to use readbehind/ahead instead of groups 2021-11-24 23:12:47 +01:00
e86b5fca9a Added durationMicros 2021-11-24 22:35:59 +01:00
d2178f3b73 Implemented PacketType Disassociation 2021-11-24 22:35:07 +01:00
fe5dec7860 Implemented PacketType AssociationRequest & Response 2021-11-24 22:29:41 +01:00
0d472e8cb3 Implemented PacketType Authentication 2021-11-24 22:27:22 +01:00
bba5da2599 Moved packet-creation outside for all cases 2021-11-24 22:25:10 +01:00