-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simple-js-examples - bring pre-reqs to top
They are sort of hidden now (and they are common to all), so raise them to the top.
- Loading branch information
1 parent
e116dea
commit c5aafd2
Showing
1 changed file
with
26 additions
and
28 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 |
---|---|---|
@@ -1,8 +1,33 @@ | ||
# Simple Javascript protocol translator and management example | ||
|
||
Please note that these example require a working Node.JS environment in your system. | ||
## Dependencies / pre-requisites | ||
|
||
This example uses `node.js v8` or higher. | ||
LmP Edge devices do not by default have it. | ||
|
||
Install the dependencies: | ||
```bash | ||
npm install | ||
``` | ||
|
||
Dependencies are: | ||
|
||
simple-edge-api-examples | ||
├── [email protected] | ||
├─┬ [email protected] | ||
│ ├─┬ [email protected] | ||
│ │ └── [email protected] | ||
│ ├── [email protected] | ||
│ └─┬ [email protected] | ||
│ ├── [email protected] | ||
│ └── [email protected] | ||
└── [email protected] | ||
|
||
The list with version can be listed with: | ||
```bash | ||
npm ls | ||
``` | ||
|
||
## simple-fota-example.js | ||
These example protocol translators (PT) demostrate the FOTA capabilities. The PT needs to register these resources: | ||
|
||
|
@@ -78,33 +103,6 @@ Please study the example code to see how to use the gateway resource manager | |
JSONRPC 2.0 API and read the relevant documentation for Edge APIs from | ||
[Device Management Docs](https://developer.izumanetworks.com/docs/device-management-edge/latest/protocol-translator/index.html). | ||
|
||
## Dependencies | ||
|
||
This example uses `node.js v8` or higher. | ||
|
||
Install the dependencies: | ||
```bash | ||
npm install | ||
``` | ||
|
||
Dependencies are: | ||
|
||
simple-edge-api-examples | ||
├── [email protected] | ||
├─┬ [email protected] | ||
│ ├─┬ [email protected] | ||
│ │ └── [email protected] | ||
│ ├── [email protected] | ||
│ └─┬ [email protected] | ||
│ ├── [email protected] | ||
│ └── [email protected] | ||
└── [email protected] | ||
|
||
The list with version can be listed with: | ||
```bash | ||
npm ls | ||
``` | ||
|
||
## Running the protocol translator example | ||
|
||
Fixed values for the example: | ||
|