Thomas Basler
33a9b7454c
Make function getClientId const
2024-11-10 02:45:42 +01:00
Thomas Basler
53b496fd00
Replace multiline print by printf
2024-11-06 19:39:24 +01:00
Thomas Basler
4640ddfba0
Better handling of empty MQTT client id
...
If the configured client id is empty, the default value (auto generated) will be used
2024-06-29 11:05:04 +02:00
Thomas Basler
ba95f99e03
Feature: Allow custom MQTT Client ID
2024-06-29 00:28:21 +02:00
Sabouflage
dfed23261a
fix(mqtt): MQTTs LWT QoS config used also for TLS connections
2024-01-30 19:02:57 +01:00
Thomas Basler
66530638de
Adjust member variable names in MqttSettings
2023-12-12 23:54:58 +01:00
Thomas Basler
8fb43fedf8
Add const keyword to methods
2023-12-12 01:30:40 +01:00
Thomas Basler
d6494fa791
Add const keyword to method parameters
2023-12-12 00:21:14 +01:00
Thomas Basler
ee4811bbe7
Feature: Allow configuration of LWT QoS
2023-11-19 16:17:10 +01:00
Thomas Basler
b85c53f476
Split config struct into different sub structs
2023-11-19 14:53:26 +01:00
Thomas Basler
a068eb2586
Remove duplicated code
2023-10-30 20:42:56 +01:00
Thomas Basler
c5f9f460cd
Feature: Added config option to change MQTT CleanSession Flag
2023-09-01 18:03:30 +02:00
Thomas Basler
0bdee6ec99
Fix: Prevent access to nullptr object when reconnecting to mqtt
...
It could occour when saving the settings via the web ui
2023-08-03 18:46:28 +02:00
Thomas Basler
658a42db80
Apply code formatter without functional changes
2023-07-22 18:00:41 +02:00
Thomas Basler
3b6c529efb
Fix: Do not publish leading blanks in MQTT payload
...
Fixes #1011
2023-06-07 17:58:31 +02:00
Martin Dummer
971ae6d1be
Feature: MQTT add TLS authentication
...
User asked for TLS client certificate based login from DTU to MQTT
server. This PR implements storage and use of x509 client certificate
and private key.
Signed-off-by: Martin Dummer <martin.dummer@gmx.net>
2023-04-12 08:33:10 +02:00
Thomas Basler
d6028cbd50
Remove not required F() macro. Frees ~20kb flash.
2023-04-04 18:51:18 +02:00
Thomas Basler
8b60c29667
Replace all Serial by MessageOutput
2022-12-19 21:38:39 +01:00
Thomas Basler
54d94af487
Cleanup includes
2022-12-14 22:13:03 +01:00
Thomas Basler
91f79fea19
Move publishHass method to MqttHandleHassClass
2022-12-14 21:08:35 +01:00
Thomas Basler
113caf510f
Introduce generic mqtt publish method
...
Allows publish of mqtt topics from other modules
2022-12-14 20:58:57 +01:00
Thomas Basler
5dd4d5b452
Introduce MqttSubscribeParser and moved inverter specific subscribes to MqttHandleInverterClass
...
This allows individual callback functions for each subscribed topic. Allows easier implementation of further mqtt functions
2022-12-14 20:42:23 +01:00
Thomas Basler
c999197dae
Optimize performance by passing strings as const reference
2022-10-29 11:22:56 +02:00
Thomas Basler
0a577f8002
Allow a maximum limit of 100 if limit type is relative
2022-10-11 23:28:22 +02:00
Thomas Basler
da0998c809
Implement inverter restart by mqtt topic
2022-10-09 13:16:06 +02:00
Thomas Basler
a893701b6d
Fixed warning regarding switch statement
2022-10-05 18:53:35 +02:00
Thomas Basler
eec04de044
Added MQTT Topic to turn inverter on and off
2022-10-04 18:12:55 +02:00
Thomas Basler
76bf5ec69b
Fix cpplint: Replace strtok by strtok_r
2022-10-02 12:37:55 +02:00
Thomas Basler
0af809e4ea
Do not appy settings if mqtt was retained and topic was non-persistent
2022-09-30 18:34:30 +02:00
Thomas Basler
ace5c33518
Set PowerLimit on mqtt request
2022-09-30 18:34:30 +02:00
Thomas Basler
eb261908af
Perform topic parsing
2022-09-30 18:34:30 +02:00
Thomas Basler
ba2d6ab6d1
Implement callback to subscribe to topics
2022-09-30 18:34:30 +02:00
Thomas Basler
de33b9ff88
Do not use namespace using-directives. Use using-declarations instead.
2022-09-13 21:35:51 +02:00
Thomas Basler
31e56f6c2b
Code hardening: introduce const keyword
2022-09-05 21:41:45 +02:00
helgeerbe
4435fbcdad
Add support for MQTT TLS
...
To support TLS its necessary to use another MQTT library.
The new lib is a drop-in replacement for the async-mqtt-client.
2022-08-06 00:14:44 +02:00
Thomas Basler
c022b8696b
Implemented serveal global network functions which are independent of the medium (wifi / ethernet)
2022-07-19 21:53:04 +02:00
Thomas Basler
c7aa22ce6c
Renamed WifiSettings to NetworkSettings and implemented first ethernet initialization
2022-07-19 21:27:36 +02:00
Thomas Basler
1124a9aaa1
Implemented first version of Home Assistant Auto Discovery
2022-07-18 22:28:03 +02:00
Thomas Basler
bb52d24c25
Implemented public getPrefix method to get the mqtt topic prefix
2022-07-18 19:08:38 +02:00
Thomas Basler
37aac48a19
Change License to GPLv2 as the RF24 lib uses GPL-2.0-only
2022-07-15 18:05:58 +02:00
Thomas Basler
bab5beb170
Move strings from RAM to Flash
2022-06-15 22:21:50 +02:00
Thomas Basler
98fa8be90e
Publish messages with qos = 0 to speed up process
2022-06-15 21:11:08 +02:00
Thomas Basler
0d48d72691
Replaced hard coded lwt values by dynymic ones
2022-04-21 23:43:44 +02:00
Thomas Basler
8895fa95e0
First version of mqtt connection handling
2022-04-21 23:15:45 +02:00
Thomas Basler
50fa7e2abf
First basic class structure for mqtt handling
2022-04-18 15:19:26 +02:00