当前位置: 首页 > news >正文

做纪录片卖给视频网站如何用google搜索产品关键词

做纪录片卖给视频网站,如何用google搜索产品关键词,百度模拟点击软件判刑了,wordpress 小米商城模板阿里云物联网通信的两种方式#xff0c;一个是物模型#xff08;分为服务#xff0c;事件#xff0c;属性#xff09;#xff0c;一个是自定义topic#xff08;要另外设置数据流转#xff09; 1.使用产品内的功能定义#xff0c;#xff08;其实也就是Topic中定义好的…阿里云物联网通信的两种方式一个是物模型分为服务事件属性一个是自定义topic要另外设置数据流转 1.使用产品内的功能定义其实也就是Topic中定义好的物模型主题功能定义中有事件属性服务三种类型 进入产品的功能定义中选择编辑草稿 添加自定义功能 功能类型可以按照需求选择服务调用比如开关灯亮度调节等属性显示数据等事件其中标识符是代码识别此功能的重要标识另外参数一定要与代码中调用的参数数据类型一致 一定要发布上线才有效 服务colorset和属性color调用的代码不同 首先小程序控制端如果是通过按钮调用服务使用aliSDK中的Action: “InvokeThingService”,完整函数代码如下 //发送信息给阿里云页面设置了一个亮度调节器进度条绑定以下函数data里面x初始值x:{‘light’:12}, changeDeviceLight: function (e) {var DeviceName this.options.deviceNamevar that thisconsole.log(携带值为, e.detail.value)console.log(x,typeof that.data.x) //x为对象格式objectthat.data.x.lighte.detail.value //将x里的数值替换成当前调节器的值var str JSON.stringify(that.data.x); //将对象转换成字符串//var Obj JSON.parse(str); 如果需要字符串转换成对象console.log(str,typeof str) //此处可以校验是否已是字符串console.log(str,str)console.log(lightvalue,that.data.x)//防止重复点击that.setData({buttonDisabled: true})aliSdk.request({Action: InvokeThingService,//IotInstanceId:iot-,//实例IDProductKey: app.globalData.productKey,DeviceName: DeviceName,Identifier: light,//Args: {light:51} //传送参数时格式为{Identifier:数值}传入格式必须有引号也就是对象转换成字符串格式数值也必须符合当时阿里云内设置的数据类型无参数的时候传空 Args:”{}“Args: str //此处获取的亮度值会被传给阿里云}, {method: POST},(res) {console.log(success)console.log(res) //查看返回response数据that.setData({openedDevice: !that.data.openedDevice})},(res) {console.log(fail)wx.showToast({title: 网络连接失败,icon: none,duration: 1000,complete: () {}})},(res) {console.log(complete)that.setData({buttonDisabled: false})}) },阿里云收到消息转给esp8266arduino串口监视器显示{“method”:“thing.service.light”,“id”:“173255894”,“params”:{“light”:114},“version”:“1.0.0”} arduino端的代码将params里的light取出来 String method jsonBuffer[method];int key1 jsonBuffer[params][light];Serial.println(method);Serial.println(method);Serial.println(key1);如果是调用属性则使用Action: “SetDeviceProperty” radioChangeColor: function (e) {var DeviceName this.options.deviceNamevar that thisconsole.log(e.detail.value)//防止重复点击that.setData({buttonDisabled: true})var str1 {\color\:str1 \e.detail.value\//\变量\可以在双引号里调用变量而不被识别成字符串str1 }console.log(str1) console.log(str1) //str1此时为字符串{color:yellow}console.log(str1,typeof str1) aliSdk.request({Action: SetDeviceProperty,//IotInstanceId:iot-,//实例IDProductKey: app.globalData.productKey,DeviceName: DeviceName,Identifier: color,Items: {color:red}//属性调用也可使用Items:str1将str1传给阿里云}, {method: POST},(res) {console.log(success)console.log(res) //查看返回response数据that.setData({openedDevice: !that.data.openedDevice})},(res) {console.log(fail)wx.showToast({title: 网络连接失败,icon: none,duration: 1000,complete: () {}})},(res) {console.log(complete)that.setData({buttonDisabled: false})}) },阿里云收到消息后转给esp8266串口监视器显示{“method”:“thing.service.colorset”,“id”:“921010594”,“params”:{“colorset”:“green”},“version”:“1.0.0”} arduino端的代码将params里的colorset取出来 String method jsonBuffer[method];String key1 jsonBuffer[params][colorset];Serial.println(method);Serial.println(method);Serial.println(key1);
http://www.w-s-a.com/news/41989/

相关文章:

  • 靖江网站开发徐州住房和城乡建设局网站
  • 南宁网站建设公司如何为老板打造网站赚钱的wordpress optimizer
  • 做微商好还是开网站好网站网络推广
  • 网站建设岗位所需技能泊头网站优化
  • 企业网站建设是什么网络营销岗位介绍
  • 网站做cdn怎么弄昆明网站seo报价
  • 拖拽网站如何建立微网站
  • 网站网站做代理微信群卖房卡南宁建站模板大全
  • 网络公司怎么优化网站百度快速排名技术培训教程
  • 建e室内设计网 周婷站长工具seo综合查询源码
  • 塔式服务器主机建网站定制美瞳网站建设
  • 网站是先解析后备案吗永久免费网站模板
  • wordpress站点演示php根据ip 跳转网站
  • 东莞市凤岗建设局网站网站开发有哪些职位
  • 企业网站手机版模板免费下载辣条网站建设书
  • 南昌网站建设维护vc 做网站源码
  • 网站动态logo怎么做织梦移动端网站怎么做
  • 三亚城乡建设局网站app下载安装官方网站
  • 公司被其它人拿来做网站郑州哪家做网站最好
  • 山东省建设厅官方网站抖音代运营业务介绍
  • 网站制作 牛商网wordpress商城 微信支付
  • 平面设计培训网站建文帝网站建设
  • python网站建设佛山乐从网站建设
  • 网站 免费 托管运营app软件大全
  • 爱网站找不到了网站设计制作要交印花税
  • 分销平台是什么意思网站如何从行为数据进行优化
  • 做网站公司职务做民俗酒店到哪些网站推荐
  • 从0到建网站wordpress导航主题模板下载地址
  • 以3d全景做的网站统计网站的代码
  • 北辰网站建设WordPress换主题文件夹