Swarmlab docs
Application development in a distributed system
Development of Distributed Systems from Design to Application
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
= Usage dummy_service
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
== usage dummy_service
|
|
|
|
|
|
|
|
WARNING: Change to project root directory. You can find this here: Instances -> [Select Instance] -> Connect --> "*Project BaseDir*"
|
|
|
|
|
|
|
|
=== List devices
|
|
|
|
|
|
|
|
* Open a terminal and Run:
|
|
|
|
|
|
|
|
[source.bash]
|
|
|
|
----
|
|
|
|
./tools/poc-dummy-ls
|
|
|
|
----
|
|
|
|
|
|
|
|
=== Add device
|
|
|
|
|
|
|
|
* Open a terminal and Run:
|
|
|
|
|
|
|
|
[source.bash]
|
|
|
|
----
|
|
|
|
./tools/poc-dummy-create device-name
|
|
|
|
----
|
|
|
|
|
|
|
|
=== Remove device
|
|
|
|
|
|
|
|
* Open a terminal and Run:
|
|
|
|
|
|
|
|
[source.bash]
|
|
|
|
----
|
|
|
|
./tools/poc-dummy-rm device-name
|
|
|
|
----
|
|
|
|
|
|
|
|
=== Send data from device
|
|
|
|
|
|
|
|
* Open a terminal and Run:
|
|
|
|
|
|
|
|
[source.bash]
|
|
|
|
----
|
|
|
|
./tools/poc-dummy-send device-name "data test"
|
|
|
|
----
|
|
|
|
|
|
|
|
TIP: Always use double quotes around data
|
|
|
|
|
|
|
|
=== Device history
|
|
|
|
|
|
|
|
* Open a terminal and Run:
|
|
|
|
|
|
|
|
[source.bash]
|
|
|
|
----
|
|
|
|
./tools/poc-dummy-log device-name
|
|
|
|
----
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|