检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
backoff_with_jitter) wait_time_s = round(wait_time_ms / 1000, 2) print("client will try to reconnect after " + str(wait_time_s) + " s")
行。 Waiting for the device online timeout 等待设备上线超时 请检查设备侧。 Wait for the device to report upgrade result timeout 等待设备上报升级结果超时 请检查设备侧。 Waiting for
正在执行的子任务个数。 success Integer 执行成功的子任务个数。 fail Integer 执行失败的的子任务个数。 waitting Integer 等待执行的子任务个数。 fail_wait_retry Integer 失败等待重试的子任务个数。 stopped Integer
DMS_ROCKETMQ_FORWARDING:转发RocketMQ消息类型。(仅标准版和企业版支持) channel_detail ChannelDetail object 通道配置信息。 表6 ChannelDetail 参数 参数类型 描述 http_forwarding HttpForwarding object
MongoDB流转失败次数:iotda_mongodb_forwarding_failedCount 软固件升级/远程配置 AOM.IoTDA 成功数量:iotda_batchtask_success_count 失败数量:iotda_batchtask_failure_count 父主题: 监控运维
行。 Waiting for the device online timeout 等待设备上线超时 请检查设备侧是否上线。 Waiting for report cellId timeout 等待上报cellId超时 请通过模组日志检查设备侧是否上报的小区ID。 Waiting for
Method URI Success Failure Register POST /rd?ep={nodeId} 2.01 Created 4.00 Bad Request, 4.03 Forbidden, 4.12 Precondition Failed 物联网平台向设备订阅资源,设
设备密钥,可自定义。若不填写密钥,物联网平台会自动生成密钥。 设备注册成功后保存设备标识码、设备ID、密钥。 设备初始化 设备初始化Demo,可参考entry/src/main/ets/pages/Index.ets。 创建设备需要输入注册设备时获取的设备ID、密码,以及1中获取的设备对接信息,注意格式为ssl://域名信息:端口号
设备密钥,可自定义。若不填写密钥,物联网平台会自动生成密钥。 设备注册成功后保存设备标识码、设备ID、密钥。 设备初始化 设备初始化Demo,可参考entry/src/main/ets/pages/Index.ets。 创建设备需要输入注册设备时获取的设备ID、密码,以及1中获取的设备对接信息,注意格式为ssl://域名信息:端口号
passWord; 连接成功后,设备显示在线。 图1 设备列表-设备在线 注:如果连接失败,在onFailure函数中已实现退避重连,代码样例如下: @Override public void onFailure(IMqttToken iMqttToken, Throwable throwable)
成功的目标id列表。 failure_targets Array of DevicePolicyBindOrUnbindFailureDetail objects 失败的目标id列表 表5 DevicePolicyBindOrUnbindFailureDetail 参数 参数类型 描述
ShowLogs("next retry time: " + waitTImeUtilNextRetry + Environment.NewLine); }))); Thread.Sleep((int)waitTImeUtilNextRetry); retryTimes++;
成功的目标id列表。 failure_targets Array of DevicePolicyBindOrUnbindFailureDetail objects 失败的目标id列表 表5 DevicePolicyBindOrUnbindFailureDetail 参数 参数类型 描述
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
下: 表1 业务场景 业务场景 通信Topic 报文Payload 设备上报数据 /aircondition/data/up { "temperature": 26.0 } 服务端控制指令 /aircondition/cmd { "switch": "off" } 设备使用一机一密的认证方式。
年、包月等)。charge_mode为prePaid时生效,且为必选值。 取值范围: month:包月 year:包年 period_num 是 Integer 参数说明:订购设备接入实例的周期数。charge_mode为prePaid时生效,且为必选值。 取值范围:period
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
行。 Waiting for the device online timeout 等待设备上线超时 请检查设备侧。 Wait for the device to report upgrade result timeout 等待设备上报升级结果超时 请检查设备侧。 Waiting for
率、缩短物联网解决方案建设周期。 产品模型 又称Product Model,用于定义一款接入设备所具备的属性(如颜色、大小、采集的数据、可识别的指令或者设备上报的事件等信息)。产品模型可以在设备接入控制台直接创建。 设备 归属于某个产品下的设备实体,每个设备具有一个唯一的标识码。
例如下: void mqtt_connect_failure(void *context, MQTTAsync_failureData *response) { retryTimes++; printf("connect failed: messageId %d, code %d