@jihuayu/aliyun-iot-sdk
v0.0.10
Published
Aliyun Server Side IoT SDK for Node.js.(阿里云 IoT 服务端 SDK)
Downloads
12
Readme
aliyun-iot-sdk
♥ 🇹🇸 纯 TypeScript 实现,提供完整声明文件
Aliyun Server Side IoT SDK for Node.js.(阿里云 IoT 服务端 SDK)
使用示例
import { IoT } from 'aliyun-iot-sdk'
const iot = new IoT({
accessKeyId: '<xxxxx>',
accessKeySecret: '<xxxxx>',
regionId: 'cn-shanghai'
})
iot.createProduct({
ProductName: 'aliyun_iot_sdk_test',
NodeType: 0,
DataFormat: 0
})
API 列表
注意:下面的所有接口都已经实现,没有勾选是因为该接口的参数模型的声明还未完善,使用 TypeScript 时传参暂时可使用
as any
过度,后期会逐步完善。
- 产品管理
- [x] createProduct
- [ ] updateProduct
- [ ] queryProductList
- [ ] queryProduct
- [ ] deleteProduct
- [ ] createProductTags
- [ ] updateProductTags
- [ ] deleteProductTags
- [ ] listProductTags
- [ ] listProductByTags
- 设备管理
- [ ] registerDevice
- [ ] queryDeviceDetail
- [ ] queryDevice
- [ ] deleteDevice
- [ ] getDeviceStatus
- [ ] batchGetDeviceState
- [ ] disableThing
- [ ] enableThing
- [ ] batchCheckDeviceNames
- [ ] batchRegisterDeviceWithApplyId
- [ ] batchRegisterDevice
- [ ] queryBatchRegisterDeviceStatus
- [ ] queryPageByApplyId
- [ ] queryDeviceEventData
- [ ] queryDevicePropertyData
- [ ] queryDevicePropertiesData
- [ ] queryDeviceServiceData
- [ ] invokeThingService
- [ ] invokeThingsService
- [ ] queryDevicePropertyStatus
- [ ] setDeviceProperty
- [ ] setDevicesProperty
- [ ] saveDeviceProp
- [ ] queryDeviceProp
- [ ] deleteDeviceProp
- [ ] getThingTopo
- [ ] notifyAddThingTopo
- [ ] removeThingTopo
- [ ] queryDeviceStatistics
- [ ] getGatewayBySubDevice
- [ ] queryDeviceByTags
- [ ] setDeviceDesiredProperty
- [ ] queryDeviceDesiredProperty
- [ ] queryDeviceFileList
- [ ] queryDeviceFile
- [ ] deleteDeviceFile
- [ ] batchUpdateDeviceNickname
- [ ] queryLoRaJoinPermissions
- [ ] createLoRaNodesTask
- [ ] getLoraNodesTask
- 分组管理
- [ ] createDeviceGroup
- [ ] deleteDeviceGroup
- [ ] updateDeviceGroup
- [ ] queryDeviceGroupInfo
- [ ] queryDeviceGroupList
- [ ] batchAddDeviceGroupRelations
- [ ] batchDeleteDeviceGroupRelations
- [ ] setDeviceGroupTags
- [ ] queryDeviceGroupTagList
- [ ] queryDeviceGroupByDevice
- [ ] querySuperDeviceGroup
- [ ] queryDeviceListByDeviceGroup
- [ ] queryDeviceGroupByTags
- 规则引擎
- [ ] listRule
- [ ] createRule
- [ ] getRule
- [ ] updateRule
- [ ] deleteRule
- [ ] listRuleActions
- [ ] getRuleAction
- [ ] createRuleAction
- [ ] updateRuleAction
- [ ] deleteRuleAction
- [ ] startRule
- [ ] stopRule
- Topic 管理
- 消息通信
- [x] pub
- [x] rRpc
- [x] pubBroadcast
- 设备影子