Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cascade-examples
rigado-node-hello-world
Commits
de9a972f
Commit
de9a972f
authored
Apr 13, 2018
by
Mikhail Vataleu
Browse files
Rename snap; Update README.md
parent
af7b497c
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
de9a972f
DeviceOps
Hello World
Cascade
Hello World
(Node.js)
====
Example of snapped Node.js application for communications with
[
Nordic Thingy:52
](
https://www.nordicsemi.com/eng/Products/Nordic-Thingy-52
)
.
The application is daemon which discovers Nordic Thingy:52 and resends data to MQTT Broker according to the
[
config file
](
./config.json
)
.
...
...
@@ -33,7 +33,6 @@ sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev
```
bash
git clone git@git.rigado.com:cascade/deviceops-hello-world.git
cd
deviceops-hello-world
git checkout develop
npm
install
npm run start
```
...
...
@@ -61,7 +60,7 @@ snap connect bluez:home
```
*
Go to the project directory run:
```snapcraft```
*
Result file is
`./
deviceops
-hello-world_0.0.1_armhf.snap`
*
Result file is
`./
rigado-node
-hello-world_0.0.1_armhf.snap`
## Installing snap
...
...
@@ -85,16 +84,16 @@ snap connect bluez:network-control
snap connect bluez:home
```
*
Copy
`./
deviceops
-hello-world_0.0.1_armhf.snap`
in to the gateway home directory.
*
Run install command:
`sudo snap install ~/
deviceops
-hello-world_0.0.1_armhf.snap --dangerous`
*
Copy
`./
rigado-node
-hello-world_0.0.1_armhf.snap`
in to the gateway home directory.
*
Run install command:
`sudo snap install ~/
rigado-node
-hello-world_0.0.1_armhf.snap --dangerous`
*
Connect plugs:
```
bash
snap stop
--disable
deviceops
-hello-world
snap connect
deviceops
-hello-world:network :network
snap connect
deviceops
-hello-world:bluetooth-control :bluetooth-control
snap connect
deviceops
-hello-world:network-control :network-control
snap start
--enable
deviceops
-hello-world
snap stop
--disable
rigado-node
-hello-world
snap connect
rigado-node
-hello-world:network :network
snap connect
rigado-node
-hello-world:bluetooth-control :bluetooth-control
snap connect
rigado-node
-hello-world:network-control :network-control
snap start
--enable
rigado-node
-hello-world
```
## Troubleshoot
...
...
snapcraft.yaml
View file @
de9a972f
name
:
deviceops
-hello-world
name
:
rigado-node
-hello-world
version
:
'
0.0.1'
summary
:
Nordic Thingy:52 + Node.js snap example
description
:
Example of snapped Node.js application for communications with Nordic Thingy:52
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment