@pluve/magic-hardware-interact-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.0.9 • Public • Published

magic-hardware-interact-sdk

Usage

import { HardwareInteractSDK } from '@pluve/magic-hardware-interact-sdk';

HardwareInteractSDK.getInstance()
  .init({
    wsUrl: 'ws://localhost',
    ports: [1024],
    // protocols: '',
    heartbeatInterval: 5000,
    reconnectDelay: 5000,
    storeCode: '5024',
    memberCode: '00121468',
    callback: function(e) {
      console.log('接收到的数据: ', e);
    },
  })
  .send({
    businessType: '',
    action: 'echo',
    businessData: 'hello',
  });

/@pluve/magic-hardware-interact-sdk/

    Package Sidebar

    Install

    npm i @pluve/magic-hardware-interact-sdk

    Homepage

    .

    Weekly Downloads

    0

    Version

    0.0.9

    License

    ISC

    Unpacked Size

    76.4 kB

    Total Files

    15

    Last publish

    Collaborators

    • fuqiting
    • zhaoyajie
    • annan1220
    • pengfeng365
    • plutolove
    • vdfor
    • ddg-dany
    • yangwend
    • yaqin8023
    • damonchen
    • lee2545
    • abel0222
    • stevenluo
    • xiongyan
    • deng_cheng