Skip to content

Commit

Permalink
Document and restrict static access when possible
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienvermeille committed Feb 6, 2024
1 parent 89a0ad2 commit 7994ecf
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions bridge/src/main/java/dev/cookiecode/rika2mqtt/bridge/Bridge.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,23 +55,27 @@
import org.springframework.stereotype.Component;

/**
* Bridge class responsible for initializing, polling stove status, handling MQTT commands, and
* publishing to MQTT.
*
* @author Sebastien Vermeille
*/
@Component
@RequiredArgsConstructor
@Flogger
public class Bridge {

static final String INITIALIZING_BRIDGE = "Initializing Rika2Mqtt bridge :";
static final String RECEIVED_MQTT_COMMAND_FOR_STOVE_S = "Received mqtt command for stove: %s";
static final String COULD_NOT_PROCESS_THE_RECEIVED_MQTT_COMMAND_S =
"Could not process the received mqtt command: %s";
static final String
COULD_NOT_RETRIEVE_ANY_STOVE_LINKED_WITH_ACCOUNT_S_PLEASE_DOUBLE_CHECK_YOUR_CONFIGURATION =
"Could not retrieve any stove linked with account %s. Please double-check your configuration.";
static final String
WILL_NOW_RETRIEVE_STATUS_FOR_EACH_DECLARED_STOVES_AT_INTERVAL_OF_S_AND_PUBLISH_IT_BACK_TO_MQTT =
"Will now retrieve status for each declared stove(s) at interval of %s and publish it back to mqtt.";
private static final String INITIALIZING_BRIDGE = "Initializing Rika2Mqtt bridge :";
private static final String COULD_NOT_PROCESS_THE_RECEIVED_MQTT_COMMAND_S =
"Could not process the received mqtt command: %s";

private final RikaFirenetService rikaFirenetService;
private final MqttPublicationService mqttPublicationService;

Expand Down

0 comments on commit 7994ecf

Please sign in to comment.