检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
必选/可选 类型 参数描述 successful_devices 必选 List<DeviceInfo> 参数解释: 成功新增的子设备列表详情。 failed_devices 必选 List<Reason> 参数解释: 新增子设备失败的原因。 DeviceInfo定义表 字段名 必选/可选
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
static DateTime lastConnectTime = DateTime.Now; static void Main(string[] args) { try {
获取指定tag_key对应的tag_value。 GET_TAG('testTagName') 字符串 - CONTAINS_TAG String tagKey 判断是否包含指定tag_key。 CONTAINS_TAG('testTagName') 布尔值 - GET_SERVICE String serviceId,boolean
新建联动规则-BatteryProperty 表4 创建联动规则参数填写说明 参数名称 说明 规则名称 自定义,例如“Battery_Low_Mail”或“Battery_Low_SMS”。 激活规则 勾选“激活规则” 生效时间 选择“一直生效”。 描述 自定义对该规则的描述,如“设备
件。 调用接口的header可以不带Content-Type或者Host。如果必须要带,请检查Content-Type是否为text/plain,以及Host是否为URL的域名,否则调用接口将返回403状态码SignatureDoesNotMatch错误。 方法二:集成OBS的SDK调用接口。
@Override public void onFailure(Object context, Throwable var2) { log.error("reportDeviceMessage fail: "+var2); }
P协议通道接入,非加密端口为5683,接入协议为CoAP。 LwM2M的语法和接口细节,请以此标准规范为准。 物联网平台支持协议规定的plain text, opaque, Core Link ,TLV , JSON编码格式。在多字段操作时(比如写多个资源),默认用TLV格式。 使用限制
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
命令打包到LwM2M write消息的payload里下发给设备。 Operation CoAP Method URI Success Failure Write PUT /19/1/0 2.04 Changed 4.00 Bad Request, 4.04 Not Found,
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
加属性”,填写相关信息后,单击“确定”。 “属性名称”:dailyActivityTime “数据类型”:int(整型) “访问权限”:可读 “取值范围”:0~65535 “步长”:1 “单位”:s 图5 新增属性-dailyActivityTime 新增服务类型“Battery”。
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
运行日志”转发规则。 其中,日志组名称为:{domainName}-device-exception-group;日志流名称为:{domainName}-device-exception-stream;转发规则名称为:{domainName}-device-exception-rule。
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
AP。物联网平台从安全角度考虑,强烈建议采用安全接入方式。 LwM2M的语法和接口细节,请以此标准规范为准。 物联网平台支持协议规定的plain text, opaque, Core Link ,TLV , JSON编码格式。在多字段操作时(比如写多个资源),默认用TLV格式。 使用限制
"paras": { "areaIds": [ 1 ] } } 请求参数 paras字段同协议中消息的映射关系 表23 参数描述 字段名 类型 协议字段 参数描述 areaIds stringList 区域ID列表 /
low_bound) wait_time_until_next_retry = min(minBackoff + backoff_with_jitter, maxBackoff) print("the next retry time is ", wait_time_until_next_retry