Commit Graph

3021 Commits (fc8c9df40e76c8cf49dbf8ef00492d2b78f66099)

Author SHA1 Message Date
Michael Zanetti fc8c9df40e Fix a python plugin crash when trying to login with empty credentials 2022-08-07 12:29:48 +02:00
jenkins 5674ba7567 Jenkins release build 1.3.1 2022-07-11 15:35:08 +02:00
jenkins c5c9703247 Jenkins release build 1.3.0 2022-06-30 15:04:40 +02:00
jenkins eb32e2274a Merge PR #539: Add phaseCount state to electricvehicle interface 2022-06-30 15:04:39 +02:00
jenkins 2098203f73 Merge PR #537: Fix additional interface command line parameter 2022-06-30 15:04:38 +02:00
jenkins a0186a0fb6 Merge PR #533: Add support for CoIoT 2022-06-30 15:04:37 +02:00
jenkins 48d5a182c6 Merge PR #531: Some fixes in Coap 2022-06-30 15:04:35 +02:00
jenkins 68be029ede Merge PR #530: Add ping retry feature and provide it to the monitor 2022-06-30 15:04:34 +02:00
jenkins 5900f64b86 Merge PR #525: Migrate pluginid in thing settings when a thing class moves 2022-06-30 15:04:32 +02:00
Michael Zanetti 57048dd6e9 Add support for CoIoT
CoIoT is a shelly specific extensions to CoAP:
It adds a new Request code which is not part of the CoAP spec
as well as using CoAP multicast (which is part of CoAP).

This commit
* renames "statusCode" to "reqRspCode" which describes
the actual field more precisely as it is in fact a Request or Response
code, not a status code.
* Allows joining multicast groups, by default using the CoAP specified
multicast address.
* Allows setting custom Request codes in requests, as well as
processing the PDUs Request/response code by the client.
2022-06-30 10:16:20 +02:00
Michael Zanetti 62644650c0 Some fixes in Coap
* Fixed an indexOutOfRange warning when creating coap requests
  because the first addOption() call was calling
  m_options.insert(1) on an empty list.

* Old code was appending multiple UDP datagrams to a single big Coap
  message, however, Coap is specified to only send s single datagram
  per message. The datagram length specifies the payload size.

* some boolean member variables weren't initialized which resulted in
  occational wrong flags.

* Parsing had issues with determining the option length in some occations
  and also would crash when receiving coap messages without any options
  or payload. To get rid of the complex and erraneous index calculations,
  the entire package parsing is now using a DataStream.

(This makes it work with Shelly devices)
2022-06-30 10:15:31 +02:00
Simon Stürz 6bb36a773b Make sure the ping replies get cleaned up from queues 2022-06-29 12:47:55 +02:00
Simon Stürz c398f7ab2f Fix ping requestId and sequence number endiness from and to the network 2022-06-29 12:25:09 +02:00
Michael Zanetti 8d50955bcc Add phaseCount state to electricvehicle interface 2022-06-27 12:37:44 +02:00
Simon Stürz 0d20cf7816 Hold reference count of monitor objects
Make host lookup optional
Cleanup pending ping on monitor unregister
2022-06-20 16:58:05 +02:00
Simon Stürz d1db6a3774 Fix network device cache housekeeping and sync the settings 2022-06-20 13:16:42 +02:00
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
Michael Zanetti 785f8cf43c Fix additional interface command line parameter 2022-06-10 17:20:50 +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 db65beb202 Migrate pluginid in thing settings when a thing class moves between plugins 2022-05-13 11:27:21 +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