检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
带此参数,产品ID在物联网平台创建产品后由平台分配获得。 图3 创建产品-MQTT 开发产品模型 找到新增的产品,单击“产品”进入产品界面。 在产品详情“基本信息”页面,单击“自定义模型”,配置产品的服务。 新增服务类型“Connectivity”。 在“添加服务”页面,填写“服
设备上报数据不带该参数或参数格式错误时,则数据上报时间以平台时间为准。 paras 必选 Object 参数解释: 设备服务的事件列表,具体字段在设备关联的产品模型中定义。 paras参数列表 字段名 必选/可选 类型 参数描述 timestamp 可选 String 参数解释: 日志产生时间。 type
-f]、数字、连接符(-)的组成。 charge_mode String 参数说明:实例的付费方式。 取值范围: prePaid:包年/包月 postPaid:按需计费 name String 参数说明:实例名称。 取值范围:由中文字符,英文字母、数字及“_”、“-”组成,且长度为[1-64]个字符。
如果是TCP协议,或者自定义协议如何接入平台? 设备显示上报数据成功,在控制台未看到数据? 应用服务器调用接口失败怎么处理? 应用服务器如何获取设备上报到物联网平台的数据? 如何制作订阅推送调测证书? 调用订阅接口时,回调地址如何获取? 订阅后消息推送失败如何处理? 物联网卡无法正常接入设备接入平台?
配置AMQP服务端 本文介绍如何在物联网平台设置和管理AMQP服务端订阅。 访问设备接入服务,单击“管理控制台”进入设备接入控制台。选择您的实例,单击实例卡片进入。 选择左侧导航栏的“规则 > 数据转发”,单击页面左侧的“创建规则”。 参考下表填写参数后,单击“创建规则”。 表1
配置MQTT服务端 本文介绍如何在物联网平台设置和管理MQTT服务端订阅。 访问设备接入服务,单击“管理控制台”进入设备接入控制台。选择您的实例,单击实例卡片进入。 选择左侧导航栏的“规则 > 数据转发”,单击页面左侧的“创建规则”。 图1 数据转发-新建规则 参考下表填写参数后,单击“创建规则”。
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
成功的目标id列表。 failure_targets Array of DevicePolicyBindOrUnbindFailureDetail objects 失败的目标id列表 表5 DevicePolicyBindOrUnbindFailureDetail 参数 参数类型 描述
ING:转发RocketMQ消息类型。(仅标准版和企业版支持) channel_detail 是 ChannelDetail object 参数说明:通道参数。 表4 ChannelDetail 参数 是否必选 参数类型 描述 http_forwarding 否 HttpForwarding
MqttCallBack4IoTHub()); 注:如果连接失败,在initMqttConnects函数中的onFailure回调函数中已实现退避重连,代码样例如下: @Override public void onFailure(IMqttToken asyncActionToken, Throwable
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
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
TaskDetail 参数 参数类型 描述 target String 执行批量任务的目标。 status String 子任务的执行状态,结果范围:Processing,Success,Fail,Waitting,FailWaitRetry,Stopped。 Waitting: 等待执行。
-f]、数字、连接符(-)的组成。 charge_mode String 参数说明:实例的付费方式。 取值范围: prePaid:包年/包月 postPaid:按需计费 name String 参数说明:实例名称。 取值范围:由中文字符,英文字母、数字及“_”、“-”组成,且长度为[1-64]个字符。
广播通信使用示例 Java SDK使用示例 本文介绍如何使用JAVA SDK进行广播通信的开发。 开发环境要求 本示例使用的开发环境为JDK 1.8及以上版本。 配置应用侧SDK 配置Maven依赖。 <dependency> <groupId>com.huaweicloud
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
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great