This project can be used as a starting point to create your own Vaadin application with Spring Boot and MQTT. It contains everything to get you started.
- Connect and listen to MQTT broker
- Configurable auto mqtt connection start and reconnect
- Store received MQTT messages within specified database
- Display MQTT connection status
- Display MQTT messages within a grid
- Update mqtt connection status and messages using Vaadin built-in websockets in real time
- Add button to re-connect to MQTT broker
- Add button to refresh MQTT messages grid
- Send messages to MQTT broker
- Periodically check whether the MQTT connection is alive
- Enable/disable components based on the MQTT connection status
Before you continue, make sure to configure your application.properties.
There are two ways to run the application : using mvn spring-boot:run
or by running the Application
class directly from your IDE.