public string Get(ConnectBlueTooth request) { string ans = BlueToothList.connect(request.devicename, request.key); if (connectstate) { return(new OkResponse(ans).ToString()); } else { return(new FailResponse(ans).ToString()); } }
/// <summary> /// 蓝牙 /// </summary> public string Get(GetBlueToothList request) { string ans = BlueToothList.getlist(); if (getliststate) { return(new OkResponse(ans).ToString()); } else { return(new FailResponse(ans).ToString()); } }