-
-
Notifications
You must be signed in to change notification settings - Fork 486
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactoring of mqtt-client plugin - updated eclipse paho lib to 1.1.1…
… version
- Loading branch information
1 parent
2406f1a
commit 33e0f23
Showing
9 changed files
with
58 additions
and
72 deletions.
There are no files selected for viewing
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
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
16 changes: 0 additions & 16 deletions
16
plugins/devices/mqtt-client/src/main/resources/data/cmd/turn-off.xcmd
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
plugins/devices/mqtt-client/src/main/resources/data/cmd/turn-on.xcmd
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...esources/data/trg/read-status-change.xtrg → ...ain/resources/data/trg/read-raw-data.xtrg
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
21 changes: 21 additions & 0 deletions
21
plugins/devices/mqtt-client/src/main/resources/data/trg/read-temperature.xtrg
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,21 @@ | ||
<trigger> | ||
<name>Mqtt client reads a temperature</name> | ||
<description>Mqtt client reads a temperature</description> | ||
<channel>app.event.sensor.protocol.read.mqtt-client</channel> | ||
<payload> | ||
<payload> | ||
<statement> | ||
<logical>SET</logical> | ||
<attribute>behaviorValue</attribute> | ||
<operand>EQUALS</operand> | ||
<value>= behaviorValue=Math.floor(@event.mqtt.message*10);</value> | ||
</statement> | ||
</payload> | ||
</payload> | ||
<hardwareLevel>true</hardwareLevel> | ||
<delay>0</delay> | ||
<priority>0</priority> | ||
<maxExecutions>-1</maxExecutions> | ||
<numberOfExecutions>0</numberOfExecutions> | ||
<suspensionTime>0</suspensionTime> | ||
</trigger> |
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