generated from openremote/custom-project
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from openremote/rework/mqtt-handler-rewrite
Rework/mqtt handler rewrite
- Loading branch information
Showing
7 changed files
with
40 additions
and
8 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
...ger/src/main/java/org/openremote/manager/custom/telematics/TelematicsDeviceProcessor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package org.openremote.manager.custom.telematics; | ||
|
||
/* | ||
* Interface to be implemented by all handlers for device-specific payload parsing of Telematics equipment. | ||
* | ||
* | ||
* */ | ||
public interface TelematicsDeviceProcessor { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...remote/manager/custom/telematics/processors/teltonika/helpers/TeltonikaParameterData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package org.openremote.manager.custom.telematics.processors.teltonika.helpers; | ||
|
||
import org.openremote.model.teltonika.TeltonikaParameter; | ||
|
||
import java.util.Map; | ||
|
||
public class TeltonikaParameterData { | ||
String key; | ||
TeltonikaParameter value; | ||
|
||
public TeltonikaParameterData(String key, TeltonikaParameter value) { | ||
this.key = key; | ||
this.value = value; | ||
} | ||
|
||
public String getParameterId() { | ||
return key; | ||
} | ||
|
||
public TeltonikaParameter getParameter() { | ||
return value; | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
manager/src/main/resources/META-INF/services/org.openremote.manager.mqtt.MQTTHandler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
org.openremote.manager.custom.teltonika.TeltonikaMQTTHandler | ||
org.openremote.manager.custom.telematics.processors.teltonika.TeltonikaMQTTHandler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters