Max Prokhorov
21423431ce
Fixed size json payload & other WS bugfixes ( #1843 )
- update every dynamicjsonbuffer with fixed size constructor argument
- change to ws callback registration to use a class builder (just cosmetic)
- test multiple ws data callbacks for each module
- remove some of the static strings in favour of ws data callback
- improve sensor ws callback data size, remove duplicated strings
- use static buffer in wsDebugSend
- postpone wsSend until loop, implement wsPost to allow other modules to queue message callbacks. remove Ticker based ws callbacks for data
- update WebUI files
5 years ago
reaper7
c5d4a1f7a6
Fix mqtt topic with ending slash ( #1755 )
5 years ago
Max Prokhorov
334b499024
Safer settings reload and MQTT change detection ( #1701 )
* MQTT: config change detection
* Reload settings when config json is uploaded
* Apply only new settings
* Finish config early when not enabled
* Reuse existing buffers from getSetting String using std::move
5 years ago
Max Prokhorov
6452f1777e
mqtt: remove 'connecting' flag when connected
5 years ago
Max Prokhorov
5ca44c1c4c
mqtt: display connection state, mqtt.info command
5 years ago
Max Prokhorov
820d8c4be8
Initial implementation of RTCMEM storage ( #1420 )
- store system crash counter and reset reason in rtcmem instead of eeprom
- store relay state mask in rtc in addition to the eeprom
- store relay state in eeprom only when boot mode requires it
- simplify relay state mask calculation / reading using std::bitset
- light state save and restore
- energy total save and restore
5 years ago
Max Prokhorov
8e95632daf
MQTT: Reset connection timer with PubSubClient ( #1702 )
https://github.com/xoseperez/espurna/issues/1465#issuecomment-484566975
5 years ago
Niek van der Maas
89a17313c2
Fix building without MQTT_SUPPORT
5 years ago
Niek van der Maas
83dc391208
Use mqttForward() instead
5 years ago
Malachi Soord
c8231860ac
[copyright-update] Update for 2019
5 years ago
Maxim Prokhorov
38216bc61a
only lock async client
5 years ago
Maxim Prokhorov
8c1ccef6e2
Wait until mqtt client has finished trying to connect
5 years ago
Max Prokhorov
385d7360a7
move to the system module
5 years ago
Max Prokhorov
68c10a4334
Allow saving heartbeat settings from web
5 years ago
Xose Pérez
d47ae2e4a4
Helper terminal methods terminalOK and terminalError
6 years ago
Xose Pérez
b9e13446fc
Revert "Wrap embeddis commands and move feedback to caller"
This reverts commit 7ad0e3a02b
.
6 years ago
Xose Pérez
7ad0e3a02b
Wrap embeddis commands and move feedback to caller
6 years ago
Xose Pérez
27e7b9ae89
Move terminal methods to own module
6 years ago
Max Prokhorov
7e71c29bf9
MQTT reconnect delay based on last disconnection
6 years ago
Xose Pérez
7eef56071d
Allow {hostname} and {mac} placeholder for mqtt user and client_id fields ( #1338 )
6 years ago
Max Prokhorov
7c85225764
Trigger commit in eeprom module
6 years ago
Xose Pérez
6fee2f1f9f
Avoid EEPROM commits on callbacks ( #1214 )
6 years ago
Xose Pérez
dd12251e43
Do not quote numbers in MQTT JSON payloads
6 years ago
Xose Pérez
ddb6b02f91
Honour build time settings for MQTT on fresh install ( #719 )
6 years ago
Xose Pérez
7d09f59952
Handle configure callbacks outside the ws module
6 years ago
Maxim Prokhorov
3ca1692827
Free jsonBuffer after printing
6 years ago
Xose Pérez
36f6d399bd
Moved {identifier} check to _mqttBackwards
6 years ago
Maxim Prokhorov
65481c23ef
Replace {identifier} with {hostname}
6 years ago
Xose Pérez
4548cc724c
Using EEPROM_Rotate library
6 years ago
Xose Pérez
fa20c47f29
Check which keys should be saved and which ones shouldn't ( #730 )
6 years ago
Maxim Prokhorov
83f848db96
Send default SSL settings too
6 years ago
Maxim Prokhorov
98a53941ba
Show default MQTT user and password in WebUI
6 years ago
Xose Pérez
1d0cc05464
Fix indexes in mqtt queued messages
6 years ago
Xose Pérez
0062f01ffd
Added tree structure to mqttQueue
6 years ago
Xose Pérez
6150544dc8
Small changes
6 years ago
Lazar Obradovic
3c2b2017c0
Buttons should not retain in MQTT
6 years ago
Xose Pérez
6ef4d130c7
Fix MQTT keep alive cannot be more than 255 seconds ( #515 )
6 years ago
Xose Pérez
5c662432ee
Changed naming convention: topic key is now magnitude
6 years ago
Xose Pérez
55ddae8a16
Added {magnitude} placeholder
6 years ago
Xose Pérez
fce0dbd8f6
Checking trailing slash in mqttTopic ( #422 )
7 years ago
Xose Pérez
5a71b152ad
Added keepalive info to debug messages
7 years ago
Xose Pérez
a662083abd
Fixed crash when calling idbSend from an MQTT callback ( #410 )
7 years ago
Xose Pérez
8eb22ff9bc
Changes in time management
7 years ago
Xose Pérez
b082d14c59
Loop hooks
7 years ago
Xose Pérez
6497238f4b
Option to disable heartbeat. Added 3rd party hooks
7 years ago
Xose Pérez
2be5ff3e47
Add MQTT message ID when in json mode
7 years ago
Xose Pérez
c990f0c0ca
Fix the mqttTopicKey method
7 years ago
Xose Pérez
c5db2758de
New mqttEnqueue API
7 years ago
Xose Pérez
ff56e38254
Added hostname and mac placeholders for MQTT base topic
7 years ago
Xose Pérez
a716633c1b
Refactor MQTT module
7 years ago