All notable changes to this project will be documented in this file.
- Using credentials did not work properly
- Optionally send a BirthMessage if connected to MQTT broker
- Optionally set global prefix for all topics
- Optionally deactivate logging of communication to reduce CPU load
- Check if persistent data to load provides all relevant parameters. Otherwise add default values
- Check if client is connected to broker before trying to publish
- Did not use topic prefix for WillMessage
- Did not update topic prefix / status if WillMessage is active within UI
- Legacy bindings of ValueDisplay elements within UI did not work if deployed with VS Code AppSpace SDK
- UI differs if deployed via Appstudio or VS Code AppSpace SDK
- Fullscreen icon of iFrame was visible
- Supports FlowConfig feature to provide incoming MQTT messages / push messages to MQTT broker
- Provide version of module via 'OnNewStatusModuleVersion'
- Check if features of module can be used on device and provide this via 'OnNewStatusModuleIsActive' event / 'getStatusModuleActive' function
- New event 'OnNewConnectionStatus'
- Function 'getParameters' to provide PersistentData parameters
- Function to 'resetModule' to default setup
- New UI design available (e.g. selectable via CSK_Module_PersistentData v4.1.0 or higher), see 'OnNewStatusCSKStyle'
- 'loadParameters' returns its success
- 'sendParameters' can control if sent data should be saved directly by CSK_Module_PersistentData
- Changed log level of some messages from 'info' to 'fine'
- Added UI icon and browser tab information
- Module tried to reconnect to MQTT broker every 5sec after a disconnection even it already reconnected succesfully
- Typo in code regarding password variable for credentials
- Typo in code regarding client certificate key path
- Added option to send Will Message also when disconnecting normally.
- Reconnection timer of 5 seconds in case the connection is lost (broker is rebooted)
- Showing in the message log if connection/reconnection failed
- Changed a couple of misleading labels for MQTTS in UI
- Bug of multiple function calls by the same event when topic of the event is changed. Solved by deregistering from event if the topic of the event is changed
- 'passwords' changed to 'password' as the parameter is called mqttClient_Model.parameters.password
- Updated docu and added "Known issues" in README that data of registered events to be forwarded via MQTT are always published as converted data type "string".
- Did not convert data of registered events to strings before trying to publish them via MQTT
- Renamed abbreviations (Id-ID, Ip-IP, Ui-UI, Mqtt-MQTT, Tls-TLS, Qos-QOS, Ca-CA)
- Using recursive helper functions to convert Container <-> Lua table
- Update to EmmyLua annotations
- Usage of lua diagnostics
- Documentation updates
- Some Enum references were missed
- TLS, CleanSession, PeerVerification, CA Bundle, ClientCertification
- Check if running on SAE
- Loading only required APIs ('LuaLoadAllEngineAPI = false') -> less time for GC needed
- Improve behaviour when loading paramters
- Recreate MQTTClient handle to reset old configuration
- Use addSubscription within addSubscriptionViaUi
- Docu update
- Do not save internal functions to forward incoming events within persistent parameters
- Initial commit