新疆喜乐彩走势图

解决方案   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:http://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。