新疆喜乐彩走势图

解决方案   Solutions 当前位置:新疆喜乐彩走势图 > 解决方案 > 技术新观点
微信除了聊天竟然还可以控制灯泡
2017-12-6 11:02:16      点击:

  WEIXINNENGZUODESHIQINGYUELAIYUEDUO,JINTIANJIESHAO“”WEIXINKONGZHIDENGPAO“”LEJIEKONGZHIDENGPAODEYUANLIHOU,JIUNENGJIXUTIANJIAKONGZHIKONGDIAO、KONGZHIDIANSHI、HUOQUWENDUDENGGONGNENG,WEIXINBINGBUZIDAICIGONGNENG,SHITONGGUOKAIYUANXIANGMUDeviceConnectLAISHIXIANDE,ZHEILIJIANGXIANGXIJIESHAODeviceConnectXIANGMU。

  WEIXINKONGZHIDENGPAODEXITONGKUANGTURUXIASUOSHI:



新疆喜乐彩走势图   XITONGFENWEISANBUFEN:SHOUJI、YUNFUWUQI、ARMGONGKONGBAN。YUNFUWUQIBASHOUJIDUANFASONGGUOLAIDEMINGLINGZHUANSONGDAOARMGONGKONGBAN,ARMGONGKONGBANJIEXIMINGLINGHOUKONGZHIDENGPAODELIANGYUMIE。

  1.1DeviceConnectKAIYUANXIANGMUJIANJIE

新疆喜乐彩走势图   DeviceConnectSHISHOUJIKONGZHIARMBANZISHANGDEWAISHEDEZUIJIANDANSHILI,MUBIAOSHIRANGSHIYONGZHENENGGENGFANGBIANDEKUOZHANGGONGNENG。DeviceConnectZAISHOUJIDUANTIGONGLESANZHONGFANGSHI:

新疆喜乐彩走势图   1.WEIXINDINGYUEHAODIANLIANGARMBANZISHANGDELEDDENG;

  2.Android AppDIANLIANGARMBANZISHANGDELEDDENG;

  3.iOS AppDIANLIANGARMBANZISHANGDELEDDENG。

  1.1.1YINGJIANHUANJING

  YUNFUWUQI:TENGXUNYUNFUWUQI,TEDIANSHIMIANFEI1GEYUE。

新疆喜乐彩走势图   ARMGONGKONGBAN:GUANGZHOUZHIYUANDIANZIDEEPC-6G2C,TEDIANSHIYOU8LUCHUANKOU。

新疆喜乐彩走势图   SHOUJI:ANZHUO、iPhoneSHOUJIDOUKEYI。

新疆喜乐彩走势图   1.1.2YUANMAXIAZAI

新疆喜乐彩走势图   YUANMADIZHI:https://github.com/yufangmin/DeviceInternet.git

新疆喜乐彩走势图   1.1.3YUANMAJIEGOU

  XIAZAIYUANMAHOU,TADEMULUJIEGOURUXIASUOSHI:



  YUANMAMULUDEGONGNENGRUXIABIAO:



  apphtmlMULUNEISHIYUNXINGZAIFUWUQISHANGMIANDEYUANMAHEGUJIAN,TATIGONGLELIANGGEGONGNENG,YISHICHULISHOUJIHEYINGJIANCHANPINFAGUOLAIDEhttpQINGQIU(HUOQUSHEBEIXINXIHUOKONGZHISHEBEIDEMINGLING),ERSHITIGONGLEhttpYEMIAN,ZAIWEIXINDINGYUEHAOHOUTAIBAMOUGEYEMIANDE“YUEDUYUANWEN”DEDIZHIZHIXIANGZHEIGEhttpYEMIAN,httpYEMIANSHIXIANLEKONGZHIDENGPAODEGONGNENG。WEIXINDINGYUEHAODESHENQINGHEJIESHAOZAIGUANWANGYOUXIANGXIWENDANG,ZHEILIBUJIESHAO。

  androidMULU、iosMULU、deviceMULU,TAMENSHISANGEYINGYONGCHENGXU,FENBIEYUNXINGZAIandroidSHOUJI、iPhoneSHOUJI、AMRKAIFABANSHANGMIAN,TAMENCAIQUXIANGTONGDEXIEYIHEFUWUQIJINXINGTONGXIN。

  1.1.4SHOUJIHEYUNFUWUQIDETONGXINGUIZE

新疆喜乐彩走势图   SHOUJIHEYUNFUWUQICAIQUhtppXIEYIapiJIEKOULAITONGXIN,FANHUIDEZHISHIjsonSHUJU。YOULIANGLEIJIEKOU:SHEZHIJIEKOUHECHAXUNJIEKOU。

新疆喜乐彩走势图   1.SHEZHIJIEKOU

  SHOUJIFANGWENYUNFUWUQI,BADENGPAOXIMIEDEJIEKOURUXIA:

新疆喜乐彩走势图   http://127.0.0.1:8080/api/a7/control?active=put&key=led&value=off

  KEYIZAIIELIULANQILIMIANSHURUZHEIDUANZIFU,TAJIUNENGGUANBIDENGPAO。ZHEILIYOUSANGEGUANJIANZI:active、key、value。

  lactive:KEQULIANGGEZHI:putHEget。putSHISHEZHIDEYISI,getSHICHAXUNDEYISI。

  lkey、value:FUWUQIBAOCUNLEYIGEZIDIAN,ZHEIGEkey、valueDEZHIJIUSHIFUWUQIZIDIANLIMIANDEkeyHEvalue。

  active=put&key=led&value=offDEYISISHI:SHEZHIledDEZHIWEIGUANBI。

新疆喜乐彩走势图   FANHUIZHISHIjsonSHUJU,RUXIA:

新疆喜乐彩走势图   {errorCode:0, errorMsg:PEIZHILEDCHENGGONG}

新疆喜乐彩走势图   errorCode:FANHUI0DAIBIAOCHENGGONG;FANHUIQITAZHIDAIBIAOSHIBAI。

  errorMsg:FANHUIerrorCodeBIANMADUIYINGDEJIESHI。

  2.CHAXUNJIEKOU

  SHOUJIFANGWENYUNFUWUQI,HUOQUDENGPAOZHUANGTAIDEJIEKOURUXIA:

  http://127.0.0.1:8080/api/a7/control?active=get&key=led

新疆喜乐彩走势图   active=get&key=ledDEYISISHI:HUOQUDENGPAODEZHUANGTAI。

新疆喜乐彩走势图   FANHUIZHISHIjsonSHUJU,RUXIA:

  {errorCode:0, key:led, value:off, errorMsg:CHAXUN+key+CHENGGONG}

  YISISHIledDEZHIWEIGUANBI。