0.1.2 • Published 2 years ago

@things-factory/node-trobot-fdc v0.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

@things-factory/node-trobot-fdc

TRobot FDC client module for nodejs.

Install

$ npm install @things-factory/node-trobot-fdc --save

Examples

Run the examples from the examples directory.

const { TRobotFdcClient } = require('@things-factory/node-trobot-fdc')
const { sleep } = require('../build/utils')

;(async function () {
  var client = new TRobotFdcClient('localhost', 8000)
  await client.connect()
  console.log('connected')
  await sleep(1000)

  let resp = await client.getActq()
  console.log('ACTQ: ', resp)
  await sleep(1000)

  resp = await client.getAptq()
  console.log('APTQ: ', resp)
  await sleep(1000)

  resp = await client.getActm()
  console.log('ACTM: ', resp)
  await sleep(1000)

  resp = await client.getApos()
  console.log('APOS: ', resp)
  await sleep(1000)

  client.disconnect()
  console.log('disconnected')
})()

API Documentation

...

Test

npm test.