nttcom / skyway-siru-device

SkyWay IoT SDK room utility for device

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SiRu device

SkyWay IoT SDK room utility for device

snipet

const siru = new SiRuDevice('myroom')

siru.on('connect', () => {
  siru.subscribe('presence')

  siru.publish('presence', `${siru.myid}: hello world.`)
})

siru.get('/echo/:message', (req, res) => {
  res.send(req.params.message)
})

Install

npm

$ npm install skyway-siru-device

API reference


Copyright. NTT Communications Corporation All Rights Reserved.

About

SkyWay IoT SDK room utility for device

License:Other


Languages

Language:JavaScript 100.0%