Socket
Book a DemoInstallSign in
Socket

@onbright/hardware-suit

Package Overview
Dependencies
Maintainers
0
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@onbright/hardware-suit

hardware-suit javascript library

1.31.3
latest
npmnpm
Version published
Maintainers
0
Created
Source

hardware-suit

hardware-suit javascript library

const {LedLampEquip, Descriptor} = require('hardware-suit')

const bright = 88
const status = '6500000000000200'
const deviceType = '01'
const deviceChildType = '01'
const lampEquip = new LedLampEquip(status, deviceType, deviceChildType)

const lampDescriptor = Descriptor.getTypeDescriptor(deviceType, deviceChildType)

console.log('Turn Off Bytes: ', lampEquip.getTurnOffBytes())
console.log('Turn On Bytes: ', lampEquip.getTurnOnBytes(bright))
console.log('Lamp Type Descriptor: ', lampDescriptor)
Turn Off Bytes:  0000000000000200
Turn On Bytes:  f200000000000200
Lamp Type Descriptor:  单色光

FAQs

Package last updated on 10 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.