通过微信小程序体验阿里云IoT物联网平台
最编程
2024-03-20 16:38:27
...
{
"schema": "https://iotx-tsl.oss-ap-southeast-1.aliyuncs.com/schema.json",
"profile": {
"productKey": "替换为你的productKey"
},
"services": [
{
"outputData": [],
"identifier": "set",
"inputData": [
{
"identifier": "temperature",
"dataType": {
"specs": {
"unit": "°C",
"min": "0",
"max": "1000",
"step": "0.1"
},
"type": "float"
},
"name": "温度"
},
{
"identifier": "humidity",
"dataType": {
"specs": {
"unit": "%RH",
"min": "0",
"max": "100",
"step": "0.1"
},
"type": "float"
},
"name": "湿度"
}
],
"method": "thing.service.property.set",
"name": "set",
"required": true,
"callType": "async",
"desc": "属性设置"
},
{
"outputData": [
{
"identifier": "temperature",
"dataType": {
"specs": {
"unit": "°C",
"min": "0",
"max": "1000",
"step": "0.1"
},
"type": "float"
},
"name": "温度"
},
{
"identifier": "humidity",
"dataType": {
"specs": {
"unit": "%RH",
"min": "0",
"max": "100",
"step": "0.1"
},
"type": "float"
},
"name": "湿度"
}
],
"identifier": "get",
"inputData": [
"temperature",
"humidity"
],
"method": "thing.service.property.get",
"name": "get",
"required": true,
"callType": "async",
"desc": "属性获取"
}
],
"properties": [
{
"identifier": "temperature",
"dataType": {
"specs": {
"unit": "°C",
"min": "0",
"max": "1000",
"step": "0.1"
},
"type": "float"
},
"name": "温度",
"accessMode": "rw",
"required": false
},
{
"identifier": "humidity",
"dataType": {
"specs": {
"unit": "%RH",
"min": "0",
"max": "100",
"step": "0.1"
},
"type": "float"
},
"name": "湿度",
"accessMode": "rw",
"required": false
}
],
"events": [
{
"outputData": [
{
"identifier": "temperature",
"dataType": {
"specs": {
"unit": "°C",
"min": "0",
"max": "1000",
"step": "0.1"
},
"type": "float"
},
"name": "温度"
},
{
"identifier": "humidity",
"dataType": {
"specs": {
"unit": "%RH",
"min": "0",
"max": "100",
"step": "0.1"
},
"type": "float"
},
"name": "湿度"
}
],
"identifier": "post",
"method": "thing.event.property.post",
"name": "post",
"type": "info",
"required": true,
"desc": "属性上报"
}
]
}
上一篇: 从一个小程序跳转到另一个小程序
推荐阅读
-
微信 "扫一扫 "物联网,全面揭秘 "扫一扫 "背后的扫盲技术!-1.1 扫一扫感知物体是做什么的? 1.1 微信扫一扫是做什么的? 扫一扫识物是指以图片或视频(商品图片:鞋/包/美妆/服饰/家电/玩具/图书/食品/珠宝/家具/其他商品)为输入媒介,挖掘微信内容生态中的有价值信息(电商+百科+资讯,如图1所示),并展示给用户。这里的电商基本涵盖了微信小程序覆盖上亿SKU的全量优质电商,可以支持用户货比N家并直接下单购买,百科和资讯则聚合了微信内的头部自媒体如搜狗、搜搜、百度等,向用户展示和分享拍摄商品相关的内容资讯。 图 1 扫一扫识别功能示意图 欢迎大家更新iOS新版微信→扫一扫→识货,亲自体验,也欢迎大家通过识货界面的反馈按钮向我们提交反馈意见。 扫一扫识物实景图展示 1.2 扫一扫识物有哪些使用场景? 扫一扫识物的目的是为用户访问微信内部生态内容开辟一个新窗口,以用户扫图片为输入形式,为用户提供微信生态内容中的百科、资讯、电商等作为展示页面。除了用户熟悉的扫一扫操作外,我们还将进一步拓展长按操作,让用户更方便地进行扫一扫操作。"扫一扫知事 "的落地场景主要涵盖三大部分: a. 科普知识: a.科普知识。用户通过扫一扫,可以在微信生态圈中获取该对象的百科、资讯等常识或趣闻,帮助用户更好地了解该对象; b.购物场景。同样的搜索功能支持用户看到喜欢的商品立即检索到微信小程序电商中的同款商品,支持用户即扫即购; c.广告场景。扫一扫识别物体可以辅助公众号文章、视频更好地理解其中蕴含的图片信息,从而更好地投放匹配广告,提高点击率。 1.3 Sweep Sense 为 Sweep 家族带来了哪些新技术? 对于扫一扫来说,大家耳熟能详的应该就是扫一扫二维码、扫一扫小程序码、扫一扫条形码、扫一扫翻译了。无论是各种形式的编码还是文字字符,都可以看作是图片的一种特定编码形式,而物的识别则是对自然场景图片的识别,这对于扫一扫家族来说是一个质的飞跃,我们希望从物的识别入手,进一步拓展扫一扫对自然场景图片的理解能力,比如扫酒、扫车、扫植物、扫人脸等服务,如下图3所示。 图 3 Sweep 家族
-
基于STM32+ESP8266设计的物联网产品(重点:支持微信小程序一键连接腾讯云平台)
-
通过微信小程序体验阿里云IoT物联网平台
-
小程序无需编程即可体验 IoT 物联网平台 - IoT 模型开发
-
[腾讯连接腾讯物联网入门学习号】深度解析微信小程序智能配置分发网络原理,安信科ESP-12S直连腾讯物联网开发平台!