Example #1
0
        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());
            }
        }
Example #2
0
        /// <summary>
        /// 蓝牙
        /// </summary>
        public string Get(GetBlueToothList request)
        {
            string ans = BlueToothList.getlist();

            if (getliststate)
            {
                return(new OkResponse(ans).ToString());
            }
            else
            {
                return(new FailResponse(ans).ToString());
            }
        }