Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@onbright/hardware-suit

Package Overview
Dependencies
Maintainers
3
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.20.0
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-95.15%
Maintainers
3
Weekly downloads
 
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 04 Nov 2022

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc