检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
下: 表1 业务场景 业务场景 通信Topic 报文Payload 设备上报数据 /aircondition/data/up { "temperature": 26.0 } 服务端控制指令 /aircondition/cmd { "switch": "off" } 设备使用一机一密的认证方式。
例如下: void mqtt_connect_failure(void *context, MQTTAsync_failureData *response) { retryTimes++; printf("connect failed: messageId %d, code %d
被授权方进入“授权”界面,单击在“被授权列表”下的“发起授权请求”。 图1 发起授权请求 被授权方填写授权方的账号名称或者账号ID(即IAM的Domain Name或Domain ID),单击“获取短信验证码”。 图2 发起授权请求详情 系统将向授权方绑定的手机号发送短信验证码,被授权方从授权方获取到
请先创建产品。 设备标识码 即node_id,填写为设备的IMEI、MAC地址或Serial No;若没有真实设备,填写自定义字符串,由英文字母、数字、连接号-和下划线_组成。 设备ID 设备ID,用于唯一标识一个设备。如果携带该参数,平台将设备ID设置为该参数值;如果不携带该参
下拉选择所属的资源空间。可以选择所有资源空间,如无对应的资源空间,请先创建资源空间。 数据过滤语句 使用SQL语句可以进行数据筛选,详情可见:SQL语句。图片中在WHERE中填入notify_data.body.topic IN ('/test/M2M'),代表只有Topic为“/test/M2M”的数据进行数据转发。
"projects": [ { "domain_id": "65382450e8f64ac0870cd180d...", "is_domain": false, "parent_id": "6
行。 Waiting for the device online timeout 等待设备上线超时 请检查设备侧。 Wait for the device to report upgrade result timeout 等待设备上报升级结果超时 请检查设备侧。 Waiting for
let waitTImeUtilNextRetry = (minBackoff + backOffWithJitter) > maxBackoff ? maxBackoff : (minBackoff + backOffWithJitter); log("wait time:
public void onFailure(Object context, Throwable var2) { System.out.println("subscribeTopic failure"); }
@Override public void onFailure(Object context, Throwable var2) { System.out.println("reportDeviceMessage fail: " + var2); } }); 订阅topic:
正在执行的子任务个数。 success Integer 执行成功的子任务个数。 fail Integer 执行失败的的子任务个数。 waitting Integer 等待执行的子任务个数。 fail_wait_retry Integer 失败等待重试的子任务个数。 stopped Integer
成功的目标id列表。 failure_targets Array of DevicePolicyBindOrUnbindFailureDetail objects 失败的目标id列表 表5 DevicePolicyBindOrUnbindFailureDetail 参数 参数类型 描述
默认每个用户最多支持5个自定义鉴权模板,只能启用一个激活状态的模板。 鉴权模板函数嵌套最大深度为5层。 模板内容体最大长度不能超过4000字符,且不能包含中文字符。 设备为密钥认证类型时,模板密码函数必须包含设备原始密钥参数(iotda::device::secret)。 使用模板鉴权时,鉴权参数
成功的目标id列表。 failure_targets Array of DevicePolicyBindOrUnbindFailureDetail objects 失败的目标id列表 表5 DevicePolicyBindOrUnbindFailureDetail 参数 参数类型 描述
notify_data.body.content.city as city, notify_data.body.content.daily_power_generation as daily_power_generation, notify_data.body.content.total_power_generation
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
年、包月等)。charge_mode为prePaid时生效,且为必选值。 取值范围: month:包月 year:包年 period_num 是 Integer 参数说明:订购设备接入实例的周期数。charge_mode为prePaid时生效,且为必选值。 取值范围:period
= connect(topic); var times = 0; while (!success) { await sleep(duration) if (duration < maxDuration) { duration
@Override public void onFailure(Object context, Throwable var2) { System.out.println("reportDeviceMessage fail: " + var2); } }); 订阅topic:
@Override public void onFailure(Object context, Throwable var2) { log.error("reportDeviceMessagefail: "+ var2); } }); 测试验证步骤如下: