public boolean publish(String clientId, String message) { return mqttConnector.publish(broker, clientId, logTopic, qos, username, password, message); }
public boolean publish(String clientId, String message, boolean handleSendEvent) { if (handleSendEvent == false) { mqttConnector.setHandleSendEvent(handleSendEvent); } return mqttConnector.publish(broker, clientId, logTopic, qos, username, password, message); }
public Controller(SessionHandle sessionHandle, String clientId) { this.sessionHandle = sessionHandle; // subscribe topic log mqttConnector.subscribe(broker, clientId, logTopic, qos, username, password); }