|
|
|
@ -65,6 +65,7 @@ public class DigitalDisplayMQTTConnector extends MQTTTransportHandler {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void processIncomingMessage(MqttMessage message, String... messageParams) {
|
|
|
|
|
if(messageParams.length != 0) {
|
|
|
|
|
String topic = messageParams[0];
|
|
|
|
|
String ownerAndId = topic.replace("wso2" + File.separator + "iot" + File.separator, "");
|
|
|
|
|
ownerAndId = ownerAndId.replace(File.separator + DigitalDisplayConstants.DEVICE_TYPE + File.separator, ":");
|
|
|
|
@ -89,6 +90,7 @@ public class DigitalDisplayMQTTConnector extends MQTTTransportHandler {
|
|
|
|
|
DigitalDisplayWebSocketServerEndPoint.sendMessage(randomId, result);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void publishToDigitalDisplay(String topic, String payLoad, int qos, boolean retained)
|
|
|
|
|
throws TransportHandlerException {
|
|
|
|
|