检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
设备管理 利用工业网关(包含RS485、AI、DO口设备)进行环境监测 预置设备影子自动调节空调温度 使用自定义Topic管理室内空调 MQTT协议设备OTA固件升级 车联网消息上下行保序 第三方云设备迁移至华为云最佳实践
使用自定义Topic管理室内空调 场景说明 自定义Topic功能用于MQTT协议设备接入物联网平台的场景,支持设备消息上报、平台消息下发的Topic进行自定义。根据Topic不同,应用侧可实现不同的业务逻辑处理,也适用于应用侧和设备侧之间,设备无法按照产品模型中定义的属性上报或命令下发的场景。
数据转发至FunctionGraph函数工作流 场景说明 对于设备上报到平台的数据,使用函数工作流FunctionGraph处理实时流数据。通过函数服务,用户只需编写业务函数代码并设置运行的条件,无需配置和管理服务器等基础设施,即可跟踪设备的设备属性、消息上报,状态变更,分析、整理和计量数据流。
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable
"service_id": "Connectivity", "properties": { "dailyActivityTime": 57 }, "event_time": "20151212T121212Z"
Common Name (eg, fully qualified host name) []: CA名称(CN) Huawei IoTDP CA Email Address []: 邮箱地址 / A challenge password []: 证书密码,如您不设置密码,可以直接回车 / An
@Override public void onFailure(Object context, Throwable var2) { System.out.println("reportDeviceMessage fail: " + var2); } }); 订阅topic:
必选/可选 类型 参数描述 successful_devices 必选 List<String> 参数解释: 成功删除的子设备(设备id)列表。 failed_devices 必选 List<Reason> 参数解释: 子设备删除失败的原因。 Reason定义表 字段名 必选/可选 类型 参数描述
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
Common Name (eg, fully qualified host name) []: CA名称(CN) Huawei IoTDP CA Email Address []: 邮箱地址 / A challenge password []: 证书密码,如您不设置密码,可以直接回车 / An
类型 参数描述 successful_devices 必选 List<DeviceStatus> 参数解释: 成功更新的子设备列表详情。 failed_devices 必选 List<Reason> 参数解释: 更新子设备状态失败的原因。 DeviceStatus定义表 字段名 必选/可选
Common Name (eg, fully qualified host name) []: CA名称(CN) Huawei IoTDP CA Email Address []: 邮箱地址 / A challenge password []: 证书密码,如您不设置密码,可以直接回车 / An
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
( pack.ag/amqp v0.12.5 // 本示例使用v0.12.5,根据实际需要选择版本 ) 代码示例 package main import ( "context" "crypto/tls" "fmt" "pack.ag/amqp" "time" )
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
regionId String 备选接入点的区域ID。 accessPointId String 备选接入点的接入点ID。 authorizingDomainId String 备选接入点的接入点授权租户,仅在授权场景下使用。 表6 AuthInfoPara 名称 类型 说明 authType
设备消息上报 功能描述 是指设备无法按照产品模型中定义的属性格式进行数据上报时,可调用此接口将设备的自定义数据格式上报给平台,平台对该消息不进行解析,该消息可以转发给应用服务器或华为云其他云服务上进行存储和处理。 消息上报和属性上报的区别,请查看消息通信说明。 低配置且资源受限或