Chipster
5aafb6c983
Publish structured link/connectivity status
...
DAPNETGateway had no MQTT link status at all, and no retain support
in its MQTT layer. Adds a link Kind (linking/unlinked/failed) and
publishes it from the places connectivity already changes state but
was previously only logged: successful login, a rejected auth key
(detected asynchronously from the server's own protocol response, not
the initial TCP connect), a dropped connection triggering the
existing reconnect loop, a failed startup socket open, and clean
shutdown.
2026-08-10 17:37:55 -05:00
Jonathan Naylor
d1bd0b549a
Add MQTT authentication.
2025-03-26 15:11:42 +00:00
Jonathan Naylor
3aee1f0ed8
Merge branch 'master' into mqtt
2025-03-18 15:13:07 +00:00
Jonathan Naylor
dde4c01a45
Upgrade the C++ version.
2025-03-18 13:52:17 +00:00
Jonathan Naylor
2a13d8b4d1
Merge branch 'master' into mqtt
2024-08-31 20:10:29 +01:00
Jonathan Naylor
8c6fa22730
Fix signal logging.
2024-08-31 20:10:13 +01:00
Jonathan Naylor
496c22f4c2
Merge branch 'master' into mqtt
2024-08-28 17:54:53 +01:00
Jonathan Naylor
bcd41d0ab6
Improve the signal handling.
2024-08-28 17:50:50 +01:00
Jonathan Naylor
bbc1a30c5d
Allow to buildon Windows again.
2024-04-22 13:49:26 +01:00
Jonathan Naylor
0eda05e064
Exit the main loop correctly.
2023-07-11 13:43:13 +01:00
Jonathan Naylor
97db2e9b45
Add basic JSON logging.
2023-07-11 11:25:39 +01:00
Jonathan Naylor
f0a271ae53
Upgrade the version and signal handling.
2023-07-07 18:41:30 +01:00
Jonathan Naylor
e677d6a954
Convert the gateway to log via MQTT.
2023-07-07 17:57:36 +01:00
Daniel Caujolle-Bert
310cf0c8ff
Fix network ports datatype (unsigned int -> unsigned short). UDPSocket: fix old bug using m_port instead of m_port[x].
2021-04-25 07:43:56 +02:00
Jonathan Naylor
8893f25cdb
Add optional log file rotation and UDP error handling.
2020-10-31 22:16:07 +00:00
Jonathan Naylor
5caf8c9e4b
Updates for NetBSD.
2020-10-05 13:22:45 +01:00
Jonathan Naylor
52b49f0bf4
Make Windows run.
2020-09-20 21:54:32 +01:00
phl0
8b2cfb04ef
Make log distinguishable for black/whitelist
2018-12-10 21:07:43 +01:00
phl0
32699fb860
Restore code beauty ;-)
2018-12-10 20:59:40 +01:00
Simon
1f3173212a
blacklist logging
2018-12-05 14:41:25 +00:00
Simon
60647c86b8
Log blacklist hits
2018-12-05 14:36:58 +00:00
Simon
bb3d40d26f
Blacklist
2018-12-05 14:35:13 +00:00
Ansgar Schmidt
bb371a70d0
Adding DebugLog entry for Queue size
2018-11-27 01:55:16 +01:00
phl0
334d5eb08c
Some minor code beautification
2018-11-18 23:35:06 +01:00
Simon
08157c342c
Add config options for REGEX support. Also add README.REGEX
2018-11-17 16:37:11 +00:00
Simon
4c47986da0
Implement whitelist REGEX match
2018-11-17 14:57:29 +00:00
Simon
a3db88cc4c
Load REGEXes from file
2018-11-17 11:25:45 +00:00
Simon
ba2a92e8e2
more REGEX logic
2018-11-15 13:21:57 +00:00
Simon
d233580d9b
typo
2018-11-15 12:02:52 +00:00
Simon
09bd988f93
REGEX logic
2018-11-15 11:55:49 +00:00
Simon
4835852190
REGEX logic
2018-11-15 11:51:11 +00:00
Simon
70b754620d
typo
2018-11-15 11:38:22 +00:00
Simon
373526223d
Increase verbosity of REGEX logging
2018-11-15 11:23:46 +00:00
Simon
9a0b79b301
Further work on REGEX
2018-11-14 16:26:57 +00:00
Simon
984bfb00bb
Initial work on REGEX blacklist on message body
2018-11-14 16:15:07 +00:00
phl0
6b61a2d6cc
(Re-)Implement backoff timer for login fails
2018-10-22 23:29:12 +02:00
phl0
1746ec7998
Basic parsing of failed login
2018-10-22 23:05:46 +02:00
phl0
784e8ce88e
Revert old backoff code
2018-10-22 22:59:09 +02:00
phl0
e46118c410
Revert last commit
2018-10-22 22:57:17 +02:00
phl0
5773edfa9b
Revert old backoff code
2018-10-22 22:54:33 +02:00
Jonathan Naylor
b1197eef49
Code cleanups.
2018-09-10 09:11:57 +01:00
Jonathan Naylor
5dd1cd3b68
Fix for Windows builds.
2018-08-27 20:30:25 +01:00
maschinist
7066b44eaa
Lock DisplayLevel to 0 when daemonized
2018-08-25 17:49:45 +02:00
maschinist
a6836690e2
Simple tests for AuthKey option added
2018-08-25 17:22:12 +02:00
maschinist
7d9e321edb
Cleaned up debug msgs & version bump
2018-08-25 12:55:10 +02:00
maschinist
7b2ead2631
Typo corrected: 10000 -> 10000u
2018-08-24 21:34:42 +02:00
maschinist
c7c7112bb7
Moved Flo's variable delay code to recover() to prevent re-login at full speed
2018-08-24 20:24:42 +02:00
phl0
cb9787b2cd
Implement preliminary login backoff timer
2018-08-23 14:07:04 +02:00
Jonathan Naylor
fd609b0eb1
Close the fds after the log initialisation.
2018-07-26 18:33:08 +01:00
Jonathan Naylor
590916734e
Fix Alert 2 logging.
2018-07-26 18:27:39 +01:00