Skip to content
Snippets Groups Projects
Commit bd584c94 authored by jkerdreu's avatar jkerdreu
Browse files

Fix doc


git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@2870 b32b6428-25c9-4566-ad07-03861ab6144f
parent 8db9726d
Branches
No related tags found
No related merge requests found
......@@ -654,19 +654,18 @@ file according to your needs.</p>
<h1>Tests</h1>
<p>First, you can launch a message dumper with this tools</p>
<pre class="code bash literal-block"><code>$ xaal-dumper
$ or xaal-tail <span class="literal number">0</span></code></pre>
$ or xaal-tail</code></pre>
<p>To start an fake lamp:</p>
<pre class="code bash literal-block"><code>$ <span class="name builtin">cd</span> xaal_svn/devices/test/DummyDevices/
$ python lamp.py</code></pre>
<pre class="code bash literal-block"><code>$ python -m xaal.dummy.lamp</code></pre>
<p>To check devices, you can use:</p>
<pre class="code bash literal-block"><code><span class="comment single"># search alive devices
</span>$ xaal-isalive
<span class="comment single"># search lamp.basic devices
</span>$ xaal-isalive lamp.basic
</span>$ xaal-isalive -t lamp.basic
<span class="comment single"># search any kind of lamp
</span>$ xaal-isalive lamp.any
</span>$ xaal-isalive -t lamp.any
<span class="comment single"># display description / attribute
</span>$ xaal-info xxxxxxxxxxxxxx &lt;- uuid
......@@ -675,7 +674,11 @@ $ python lamp.py</code></pre>
</span>$ xaal-walker
<span class="comment single"># same but on for lamp devices
</span>$ xaal-walker lamp.any</code></pre>
</span>$ xaal-walker -t lamp.any</code></pre>
<p>To turn on/off the lamp</p>
<pre class="code bash literal-block"><code><span class="comment single"># turn on the lamp
</span>$ xaal-send -d xxxxxxxxxxxxxx -r turn_off
$ xaal-send -d xxxxxxxxxxxxxx -r turn_on</code></pre>
</div>
<div class="section" id="windows">
<h1>Windows</h1>
......@@ -687,7 +690,7 @@ to be able to run Activate.ps1.</p>
<pre class="code literal-block"><code>Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser</code></pre>
</blockquote>
<p>To install libsodium. You can dowload it here: <a class="reference external" href="https://download.libsodium.org/libsodium/releases/">https://download.libsodium.org/libsodium/releases/</a>
Extract the DLL from the zip file (libsodium-1.0.18-stable-msvc.ziplibsodiumx64Releasev142dynamic)
Extract the DLL from the zip file (libsodium-x.y.z-stable-msvc.ziplibsodiumx64Releasevzzzdynamic)
in the Win32 DLL folder.</p>
<p>If everything is fine, you can use exactly the same commands on Un*x and Windows. The xaal-* commands
are just renamed with an exe extension (ie: xaal-dumper.exe)</p>
......
......@@ -102,14 +102,13 @@ First, you can launch a message dumper with this tools
.. code-block:: bash
$ xaal-dumper
$ or xaal-tail 0
$ or xaal-tail
To start an fake lamp:
.. code-block:: bash
$ cd xaal_svn/devices/test/DummyDevices/
$ python lamp.py
$ python -m xaal.dummy.lamp
To check devices, you can use:
......@@ -119,10 +118,10 @@ To check devices, you can use:
$ xaal-isalive
# search lamp.basic devices
$ xaal-isalive lamp.basic
$ xaal-isalive -t lamp.basic
# search any kind of lamp
$ xaal-isalive lamp.any
$ xaal-isalive -t lamp.any
# display description / attribute
$ xaal-info xxxxxxxxxxxxxx <- uuid
......@@ -131,8 +130,15 @@ To check devices, you can use:
$ xaal-walker
# same but on for lamp devices
$ xaal-walker lamp.any
$ xaal-walker -t lamp.any
To turn on/off the lamp
.. code-block:: bash
# turn on the lamp
$ xaal-send -d xxxxxxxxxxxxxx -r turn_off
$ xaal-send -d xxxxxxxxxxxxxx -r turn_on
Windows
......@@ -147,7 +153,7 @@ to be able to run Activate.ps1.
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
To install libsodium. You can dowload it here: https://download.libsodium.org/libsodium/releases/
Extract the DLL from the zip file (libsodium-1.0.18-stable-msvc.zip\libsodium\x64\Release\v142\dynamic)
Extract the DLL from the zip file (libsodium-x.y.z-stable-msvc.zip\libsodium\x64\Release\vzzz\dynamic)
in the Win32 DLL folder.
If everything is fine, you can use exactly the same commands on Un*x and Windows. The xaal-* commands
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment