Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Latest commit

 

History

History
17 lines (11 loc) · 655 Bytes

README.md

File metadata and controls

17 lines (11 loc) · 655 Bytes

Intel Edison Pub/Sub Network

This repo contains all the information necessary to setup and create a publish/subscribe network for Intel Edison boards, and monitor them.

Usage

const MasterNodeConnection = require('./MasterNodeConnection.js')

const master = new MasterNodeConnection('ip', port, 'light:temp', 'button:light', ()=>{})

master.startAutomaticDiscovery()

Each user will be provisioned with what sensors they have and what they want delimited by a colon. The above snippet initializes a node with the sensors light & temp, while it wants to subscribe to any node with button or light.