Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DeviceUpThing 物模型 最后两个是产品id和设备名称 DeviceUpThing = "device.up.thing.%s.%s" DeviceUpThingAll = "device.up.thing.>" // DeviceUpGateway 网关与子设备 最后两个是产品id和设备名称 DeviceUpGateway = "device.up.gateway.%s.%s" DeviceUpGatewayAll = "device.up.gateway.>" // DeviceUpOta ota升级相关 最后两个是产品id和设备名称 DeviceUpOta = "device.up.ota.%s.%s" DeviceUpOtaAll = "device.up.ota.>" // DeviceUpShadow 设备影子 最后两个是产品id和设备名称 DeviceUpShadow = "device.up.shadow.%s.%s" DeviceUpShadowAll = "device.up.shadow.>" // DeviceUpConfig 设备远程配置 最后两个是产品id和设备名称 DeviceUpConfig = "device.up.config.%s.%s" DeviceUpConfigAll = "device.up.config.>" // DeviceUpSDKLog 设备调试日志 最后两个是产品id和设备名称 DeviceUpSDKLog = "device.up.sdkLog.%s.%s" DeviceUpSDKLogAll = "device.up.sdkLog.>" // DeviceUpStatusConnected 设备登录后向内部推送以下topic DeviceUpStatusConnected = "device.up.status.connected" // DeviceUpStatusDisconnected 设备的登出后向内部推送以下topic DeviceUpStatusDisconnected = "device.up.status.disconnected" // DeviceDownAll dd模块订阅以下topic,收到内部的发布消息后向设备推送 DeviceDownAll = "device.down" )
设备交互相关topic
View Source
const ( // ApplicationDeviceStatusConnected 设备登录状态推送 中间两个是产品id和设备名称 ApplicationDeviceStatusConnected = "application.device.%s.%s.status.connected" // ApplicationDeviceStatusDisConnected 设备登出状态推送 中间两个是产品id和设备名称 ApplicationDeviceStatusDisConnected = "application.device.%s.%s.status.disconnected" // ApplicationDeviceReportThingProperty 设备物模型属性上报通知 中间两个是产品id和设备名称,最后一个是属性id ApplicationDeviceReportThingProperty = "application.device.%s.%s.report.thing.property.%s" // ApplicationDeviceReportThingEvent 设备物模型事件上报通知 中间两个是产品id和设备名称,最后两个是事件类型和事件id ApplicationDeviceReportThingEvent = "application.device.%s.%s.report.thing.event.%s.%s" ApplicationDeviceReportThingEventAllDevice = "application.device.*.*.report.thing.event.>" ApplicationDeviceReportThingPropertyAllDevice = "application.device.*.*.report.thing.property.>" ApplicationDeviceStatusConnectedAllDevice = "application.device.*.*.status.connected" ApplicationDeviceStatusDisConnectedAllDevice = "application.device.*.*.status.disconnected" )
应用事件通知(设备状态变化,设备上报)
View Source
const ( DmProductUpdateSchema = "server.dm.product.update.schema" //物模型有更新 DmDeviceUpdateLogLevel = "server.dm.device.update.logLevel" //设备日志级别有更新 DmDeviceUpdateGateway = "server.dm.device.update.gateway" //网关下的子设备有改动 DmDeviceUpdateRemoteConfig = "server.dm.product.update.remoteConfig" //远程配置推送 )
dmsvr发布的事件通知
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.