| | |
| | | } |
| | | #endregion |
| | | |
| | | /// <summary> |
| | | /// 申请设备密钥 |
| | | /// </summary> |
| | | /// <param name="mac"></param> |
| | | /// <returns></returns> |
| | | public ResponsePackNew ApplyDeviceSecret (string mac) |
| | | { |
| | | Dictionary<string, object> d = new Dictionary<string, object> (); |
| | | d.Add ("supplier", "HDL"); |
| | | d.Add ("mac", mac); |
| | | d.Add ("spk", "BUSUDPGATEWAY"); |
| | | var requestJson = HttpUtil.GetSignRequestJson (d); |
| | | return HttpUtil.RequestHttpsPostFroHome (NewAPI.Api_Post_ApplyDeviceSecret, requestJson); |
| | | } |
| | | |
| | | //#region Kaede --设备功能—————————————————————————————————— |
| | | ///// <summary> |
| | | ///// 获取设备列表 |