예제 #1
0
        /// <summary>
        ///     Disconnects the printer from the protocol layer
        /// </summary>
        /// <param name="_">Command to handle</param>
        private void DisconnectFromProtocol(DisconnectDevice _)
        {
            _temperatureMeasurements.Cancel(false);
            _protocol.Tell(DisconnectProtocol.Instance);

            Become(Disconnecting);
        }
예제 #2
0
파일: Bluetooth.cs 프로젝트: tmyt/hblink
        private async void DisconnectInternal(bool success)
        {
            // Disconnect?
            // 02 01 01
            await WriteValueInternal(new byte[] { 0x02, 0x01, 0x01 });

            DisconnectDevice?.Invoke();
            _connection.Source.SetResult(success);
        }
 private void OnDisconnectDevice(DisconnectDevice msg)
 {
     _sender = Sender;
     _client.Disconnect();
 }
예제 #4
0
 private void OnDisconnectDevice(DisconnectDevice msg)
 {
     Self.Tell(PoisonPill.Instance);
 }