| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- /** iot 依赖注入 KEY */
- export const IOT_PROVIDE_KEY = {
- PRODUCT: 'IOT_PRODUCT'
- }
- /**
- * IoT 设备消息的方法枚举
- */
- export const IotDeviceMessageMethodEnum = {
- // ========== 设备状态 ==========
- STATE_UPDATE: {
- method: 'thing.state.update',
- name: '设备状态变更',
- upstream: true
- },
- // ========== 设备属性 ==========
- PROPERTY_POST: {
- method: 'thing.property.post',
- name: '属性上报',
- upstream: true
- },
- PROPERTY_SET: {
- method: 'thing.property.set',
- name: '属性设置',
- upstream: false
- },
- // ========== 设备事件 ==========
- EVENT_POST: {
- method: 'thing.event.post',
- name: '事件上报',
- upstream: true
- },
- // ========== 服务调用 ==========
- SERVICE_INVOKE: {
- method: 'thing.service.invoke',
- name: '服务调用',
- upstream: false
- },
- // ========== 设备配置 ==========
- CONFIG_PUSH: {
- method: 'thing.config.push',
- name: '配置推送',
- upstream: false
- }
- }
- // IOT 产品物模型类型枚举类
- export const IotThingModelTypeEnum = {
- PROPERTY: 1, // 属性
- SERVICE: 2, // 服务
- EVENT: 3 // 事件
- }
|