skyway-siru-device

0.0.5 • Public • Published

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.

/skyway-siru-device/

    Package Sidebar

    Install

    npm i skyway-siru-device

    Weekly Downloads

    1

    Version

    0.0.5

    License

    Apache-2.0

    Unpacked Size

    21.8 kB

    Total Files

    11

    Last publish

    Collaborators

    • alanmshelly
    • komasshu
    • nttcom-skyway
    • yusuke84