@a1motion/driveweb 中文文档教程
driveweb
的Driveweb 接口
Install
使用 yarn
yarn add @a1motion/driveweb
:或使用 npm
:
npm i -S @a1motion/driveweb
Usage
基本示例
const driveweb = require('driveweb');
// Create an instance by passing the device's ip.
const smarty = driveweb('192.168.51.2');
// Get a paramter by passing its ids or an array of ids:
const speed = await smarty.getParameter(5026);
// Set an parameter:
const newSpeed = await smarty.setParameter(5026, 100);
driveweb
Driveweb Interface
Install
With yarn
:
yarn add @a1motion/driveweb
or with npm
:
npm i -S @a1motion/driveweb
Usage
Basic Example
const driveweb = require('driveweb');
// Create an instance by passing the device's ip.
const smarty = driveweb('192.168.51.2');
// Get a paramter by passing its ids or an array of ids:
const speed = await smarty.getParameter(5026);
// Set an parameter:
const newSpeed = await smarty.setParameter(5026, 100);
更多
你可能也喜欢
- @0x/dev-utils 中文文档教程
- @1023-ventures/piral-cli-rupel-csharp-codegen 中文文档教程
- @1ky/redis 中文文档教程
- @36node/jest-runner-newman 中文文档教程
- @51npm/freedom-middleware-webpack2 中文文档教程
- @a-a-game-studio/aa-core 中文文档教程
- @aabuhijleh/ffi 中文文档教程
- @abdelilah/react-rich-text 中文文档教程
- @abdulbasit79/lotide 中文文档教程
- @abigael-faigao/lotide 中文文档教程