Esempio n. 1
0
        /// <inheritdoc />
        public void RequestRssi()
        {
            var command = MyoCommand.Create(
                _myoErrorHandlerDriver,
                () =>
            {
                IntPtr errorHandle;
                var result = PlatformInvocation.Running32Bit
                        ? _myoDeviceBridge.RequestRssi32(_handle, out errorHandle)
                        : _myoDeviceBridge.RequestRssi64(_handle, out errorHandle);

                return(MyoCommandResult.Create(
                           result,
                           errorHandle));
            });

            command.Execute();
        }