Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/octoblu/skynetjs
Skynet Javascript for making client-side IoT development easier
https://github.com/octoblu/skynetjs
Last synced: 10 days ago
JSON representation
Skynet Javascript for making client-side IoT development easier
- Host: GitHub
- URL: https://github.com/octoblu/skynetjs
- Owner: octoblu
- Created: 2013-12-14T20:14:45.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-12-31T01:35:32.000Z (about 11 years ago)
- Last Synced: 2024-04-10T18:15:38.436Z (9 months ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
skynetjs
========Skynet Javascript for making client-side IoT development easier
Note: There are three ways listed in the HTML example:
1. The first option is used when you know the UUID and token of the device or node being connected to Skynet
```
var skynetConfig = {
"uuid": "0d3a53a0-2a0b-11e3-b09c-ff4de847b2cc",
"token": "qirqglm6yb1vpldixflopnux4phtcsor"
}
skynet(skynetConfig, function (e, socket) {
````2. If you would like for Skynet to automatically register a new UUID and token for you.
```
skynet(function (e, skynet) {
```3. Similar to option two, Skynet will automatically register your device/node but you can pass additional JSON elements to your device description. There are no reserved element names.
```
skynet({appName:'chris'}, function (e, skynet) {
```