public async void Stop(ButtplugClientDevice device)
        {
            if (_client == null)
            {
                return;
            }

            if (!device.AllowedMessages.ContainsKey(typeof(StopDeviceCmd)))
            {
                return;
            }

            await device.StopDeviceCmd();

            //ButtplugMessage response = await _client.SendDeviceMessage(device, new StopDeviceCmd(device.Index));
            //await CheckResponse(response);
        }
        public async void Stop(ButtplugClientDevice device)
        {
            if (_client == null)
            {
                return;
            }

            if (!device.AllowedMessages.ContainsKey(typeof(StopDeviceCmd)))
            {
                return;
            }

            try
            {
                await device.StopDeviceCmd();

                //ButtplugMessage response = await _client.SendDeviceMessage(device, new StopDeviceCmd(device.Index));
                //await CheckResponse(response);
            }
            catch (Exception e)
            {
                RecordButtplugException("ButtplugAdapter.Stop", e);
            }
        }
Exemple #3
0
 private static async Task HandleVibrateStop(ButtplugClientDevice device)
 {
     await device.StopDeviceCmd();
 }