3003 Commits

Author SHA1 Message Date
Michael Zanetti
568bbc6972 Smaller fixes in the NetworkDiscovery
Fixes a theoretical memory leak (m_cacheSettings wasn't delete)
which isn't really an issue in practice but valgrind complains on it.

Fixes a typo: m_reties -> m_retries
2022-06-20 13:16:42 +02:00
Simon Stürz
2dbd8c47ba Add ping retry feature and provide it to the monitor 2022-06-20 13:16:42 +02:00
jenkins
d8c86c5767 Jenkins release build 1.2.0 2022-06-16 00:20:53 +02:00
jenkins
f33d674d3c Merge PR #529: Provide access to the network device discovery cache 2022-06-16 00:20:52 +02:00
jenkins
d44776111e Merge PR #528: Properly use pkgconfig to find nymea-mqtt 2022-06-16 00:20:50 +02:00
jenkins
79e8c52765 Merge PR #527: Print a better warning when setStateValue() is called with a wrong name 2022-06-16 00:20:49 +02:00
jenkins
45c20c56cc Merge PR #526: Fix Things filter by param method 2022-06-16 00:20:47 +02:00
jenkins
03efba295e Merge PR #524: Add alarm and firesensor interfaces 2022-06-16 00:20:46 +02:00
jenkins
1863bb8ddb Merge PR #523: Explicitly destroy experiences 2022-06-16 00:20:45 +02:00
jenkins
c52e2ef6b8 Merge PR #522: Fix allowedValues for battery interface 2022-06-16 00:20:44 +02:00
jenkins
adba1fdd41 Merge PR #521: Allow configuring warning/info/debug logging levels 2022-06-16 00:20:42 +02:00
jenkins
bd7ea0cf8f Merge PR #517: Fix filters generating wrong data types 2022-06-16 00:20:41 +02:00
Michael Zanetti
48dd263cd9 Allow configuring warning/info/debug logging levels 2022-06-15 15:53:15 +02:00
Simon Stürz
fe317cfaae Inform about cache loading 2022-06-03 12:35:36 +02:00
Simon Stürz
289998af32 Align cache updated signal with method wording 2022-06-02 14:09:23 +02:00
Simon Stürz
08d4599f01 Provide access to the network device discovery cache 2022-06-02 14:07:35 +02:00
Michael Zanetti
f6da6d47a9 Properly use pkgconfig to find nymea-mqtt 2022-05-31 17:19:33 +02:00
Michael Zanetti
48095b2ced Print a better warning when setStateValue() is called with a wrong name 2022-05-31 17:17:52 +02:00
Michael Zanetti
6da1c70e5b Add alarm and fire seonsor interfaces 2022-05-31 17:16:42 +02:00
Simon Stürz
964edeee5d Things filter by param 2022-05-23 16:10:12 +02:00
Michael Zanetti
8efe92e421 Explicitly destroy experiences on shutdown
Fixes an occational crash if an experience accesses
the thingmanager while it is being shut down.
2022-05-13 11:26:47 +02:00
Michael Zanetti
2a62ab17d4 Fix allowedValues for battery interface 2022-05-13 11:26:32 +02:00
Michael Zanetti
bbc585e92e Fix filters genering wrong data types
When enabling a jitter filter on integer states (e.g. a signal
strength that repeatedly jumps up and down by 1), old code
may cause integer state to be populated with floating point values
as the filtering happens after the intial validation for the new
value being valid.
2022-05-13 11:25:48 +02:00
jenkins
45081ad64e Jenkins release build 1.1.0 2022-05-03 23:27:19 +02:00
jenkins
569e9fa57d Merge PR #520: Fixes in permit joining timer handling 2022-05-03 23:27:18 +02:00
jenkins
4d16bba8ed Merge PR #519: Increase timeout for tests 2022-05-03 23:27:17 +02:00
jenkins
8a3f85ca25 Merge PR #518: Fix webserver tests 2022-05-03 23:27:15 +02:00
jenkins
c71d66ccdb Merge PR #516: Add rpath to nymead binary 2022-05-03 23:27:14 +02:00
jenkins
dbcbbfcf97 Merge PR #515: Allow modbus RTU plugins to request a connection reset 2022-05-03 23:27:13 +02:00
jenkins
2b32bca5cf Merge PR #513: Add a timeout to ModbusRtuReplies 2022-05-03 23:27:10 +02:00
jenkins
eec7566d50 Merge PR #512: Remove smartmeterconsumer from evcharger 2022-05-03 23:27:09 +02:00
jenkins
06ed86bcdd Merge PR #511: Network device monitor 2022-05-03 23:27:07 +02:00
jenkins
44e2e36e16 Merge PR #509: Store the serveruuid as string 2022-05-03 23:27:06 +02:00
jenkins
7bc4d2ec2a Merge PR #508: Add support for listing and removing entries to PyPluginStorage 2022-05-03 23:27:04 +02:00
jenkins
1a06fabda2 Merge PR #507: Add support for datetime objects to pluginStorage in python plugins 2022-05-03 23:27:03 +02:00
Simon Stürz
17fc204122 Fix discovery behaviour if the resouce is not available 2022-05-03 14:30:01 +02:00
Simon Stürz
1d04da6205 Make sure the ping timer exists to prevent crash if not available 2022-04-26 16:45:07 +02:00
Simon Stürz
f3760ff84a Fix networkdevicemonitor virtual destructor 2022-04-26 11:17:12 +02:00
Simon Stürz
66d62b87de Update debug categories and use qInfo, fix vietual destructor for the monitor 2022-04-25 17:07:48 +02:00
Simon Stürz
76b7bc1267 Fix ping crash if the host address is not valid 2022-04-25 15:27:35 +02:00
Simon Stürz
61bbd3cbdf Unfriend the discovery class from the monitor 2022-04-25 08:17:37 +02:00
Simon Stürz
e4ff2d9422 Update mac address test naming 2022-04-25 08:06:17 +02:00
Michael Zanetti
af3c928092 Fixes in permit joining timer handling
Emit ZigbeeNetworkChanged when it actually changes in the stack,
not directly after we request the stack to change something as
it may fail, or the effective parameters may be not what we think.
2022-04-23 23:34:39 +02:00
Michael Zanetti
0ca6286c5f Increase timeout for tests 2022-04-23 22:25:25 +02:00
Michael Zanetti
192bdac209 Fix webserver tests
canonicalFilePath() behavior seems to have changed at some point
and not existing files outside the public dir will return a 404
rather than a 403. Ideally the logic would be fixed to first
check for the file being outside the public directory, directly
returning a 403, then checking if the file exists, return a 404
if not, and lastly check for permissions on the file and return
a 403 again of denied. However, that would result in a bigger
change.

Also, the tests were failing all along if syslog exists but is
not readable (code is ok, just bad test) but none of our
autotesters seemed to have such a setup till now.
2022-04-23 00:23:21 +02:00
Michael Zanetti
9c5a6fadb6 Add rpath to nymead binary
This allows to run it from the build directory without having to
specify LD_LIBRARY_PATH.

This is particularly useul when working with parts that require
special capabilities such as the NetworkDiscovery, given that
setcap on a binary disables LD_LIBRARY_LATH loading for security
reasons.

Building the dpkg package, the rpath will not be added.
2022-04-13 13:24:46 +02:00
Simon Stürz
c59185672f Add mac address class and unit tests
Finish updated network discovery
Improve ARP and monitor handling
Introduce network device info cache housekeeping
2022-04-13 11:08:29 +02:00
Simon Stürz
14ea1bef4a Restructure network discovery and add discovery 2022-04-13 11:08:00 +02:00
Michael Zanetti
54c7cdcabf fix pull request template 2022-04-13 00:52:21 +02:00
Michael Zanetti
b2cc7ac769 Add a timeout to ModbusRtuReply
QModbusReply seems to never finish in some rare cases:
For instance if a request is sent and before the reply arrives, the
modbus adapter is unplugged. This change should keep upper logic
working which relies on requests finishing eventually.

Also fixes the issue that we emit finished() multiple times if
QModbusClient retries multiple times and emits error() for each
attempt. We're only interested in a single result anyways.
2022-04-08 14:33:07 +02:00