|
本帖最后由 ledlamp 于 2015-11-15 15:23 编辑
用了APICloud,在updateDeviceFromServer时,按照文档进行请求,结果提示
- Array
- (
- [msg] => GizWifiError_INVALID_PARAM
- [errorCode] => -20
- )
复制代码 当我把文档中"productKey"换成“productkey”后,就没有出错提示了,但是在回调函数的Log都没打出来。
另外,用write接口时,传递参数
- {"device": {"mac":"5CCF7XXXXX94","did": "j4PWHLpXXXXXXXdGkBLseg"},"data": {"cmd": 1,"entity0": {write_raw:"1111111111111"}}}
复制代码 会立刻在回调函数中收到以下Log
- Array
- (
- [msg] => GizWifiError_CONNECTION_CLOSED
- [device] => Array
- (
- [mac] => 5CCF7XXXXX94
- [did] => j4PWHLpXXXXXXXdGkBLseg
- )
- [errorCode] => -7
- )
复制代码
|
|