2stools-daq 中文文档教程
2STools library
Library with useful functions for our clients
Install
npm install 2stools-daq
Examples
使用 packetDecode 函数将原始数据解码为 JSON。
const { packetDecode } = require('2stools-daq');
const rawData = '000441da6666';
const decodedData = packetDecode(rawData);
console.log(decodedData);
// { "temp": "27.3000" }
Author
2STools library
Library with useful functions for our clients
Install
npm install 2stools-daq
Examples
Using packetDecode function to decode raw data to JSON.
const { packetDecode } = require('2stools-daq');
const rawData = '000441da6666';
const decodedData = packetDecode(rawData);
console.log(decodedData);
// { "temp": "27.3000" }