Socket
Book a DemoInstallSign in
Socket

aep-sdk

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aep-sdk

ctwing http protocol

0.0.3
latest
npmnpm
Version published
Maintainers
1
Created
Source

电信CTWing平台

uasage

import { AEPSdk, DeviceDataPush } from 'aep-sdk'

const aepClient = new AEPSdk({tenantId, appId, appKey, appSecret, productId, MasterKey})

const deviceList = await aepClient.DeviceManagement.QueryDeviceList(productId)

// 订阅消息推送处理
// 设备上下线
SubscribeHandle.handleHook('deviceOnlineOfflineReport',  async (message) => {})
// 设备数据上报
SubscribeHandle.handleHook('dataReport',  async (message) => {})
// 设备命令响应
SubscribeHandle.handleHook('commandResponse',  async (message) => {})
// 设备事件上报
SubscribeHandle.handleHook('eventReport',  async (message) => {})
// TUP合并数据变化
SubscribeHandle.handleHook('dataReportTupUnion',  async (message) => {})
// 设备增删
SubscribeHandle.handleHook('addDeleteDevice',  async (message) => {})
// 未知消息
SubscribeHandle.handleHook('other',  async (message) => {})

await SubscribeHandle.handle(message)
await SubscribeHandle.handle(message, async (messageType)=>{})

FAQs

Package last updated on 07 Jul 2025

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.