-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refresh doc/env-vars and add doc/devices
- Loading branch information
1 parent
72cb380
commit 810794d
Showing
5 changed files
with
112 additions
and
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<h2>DEVICES</h2> | ||
|
||
<p>JSON-encoded map of devices in the device tree. The key is the device ID. A device is the structure:</p> | ||
|
||
<pre class="code-snippet"> | ||
type device struct { | ||
Id string | ||
Model string | ||
Name string | ||
Children []string // child Ids | ||
DeployParams template.HTML | ||
} | ||
</pre> | ||
|
||
<h4>Example</h4> | ||
|
||
<pre class="code-snippet"> | ||
{ | ||
"qrcode1": { | ||
"Id": "qrcode1", | ||
"Model": "qrcode", | ||
"Name": "QR Code", | ||
"Children": null, | ||
"DeployParams": "target=wioterminal" | ||
}, | ||
"gps1": { | ||
"Id": "gps1", | ||
"Model": "gps", | ||
"Name": "GPS", | ||
"Children": null, | ||
"DeployParams": "target=nano-rp2040" | ||
}, | ||
"hub": { | ||
"Id": "hub", | ||
"Model": "hub", | ||
"Name": "Hub", | ||
"Children": [ | ||
"gps1", | ||
"qrcode1", | ||
], | ||
"DeployParams": "target=x86-64\u0026port=8000" | ||
} | ||
} | ||
</pre> |
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