BleStream Class

HIDSharp
Inheritance Hierarchy

SystemObject
  SystemMarshalByRefObject
    System.IOStream
      HidSharpDeviceStream
        HidSharp.ExperimentalBleStream

Namespace:  HidSharp.Experimental
Assembly:  HidSharp (in HidSharp.dll) Version: 2.6.3
Syntax

public abstract class BleStream : DeviceStream

The BleStream type exposes the following members.

Properties

  NameDescription
Public propertyDevice
Gets the BleDevice associated with this stream.
Public propertyReadTimeout
The maximum amount of time, in milliseconds, to wait for the device to send some data. The default is 3000 milliseconds. To disable the timeout, set this to Infinite.
(Inherited from DeviceStream.)
Public propertyRequestFlags
Public propertyService
Gets the BleService associated with this stream.
Public propertyTag
An object storing user-defined data about the stream.
(Inherited from DeviceStream.)
Public propertyWriteTimeout
The maximum amount of time, in milliseconds, to wait for the device to receive the data. The default is 3000 milliseconds. To disable the timeout, set this to Infinite.
(Inherited from DeviceStream.)
Top
Methods

  NameDescription
Public methodBeginRead
Begins an asynchronous read operation.
(Inherited from DeviceStream.)
Public methodBeginReadEvent
Public methodBeginWrite
Begins an asynchronous write operation.
(Inherited from DeviceStream.)
Public methodBeginWriteCharacteristicWithoutResponse(BleCharacteristic, Byte, Int32, Int32, AsyncCallback, Object)
Public methodBeginWriteCharacteristicWithoutResponse(BleCharacteristic, Byte, Int32, Int32, BleRequestFlags, AsyncCallback, Object)
Public methodCanReadEventNow
Public methodEndRead
Waits for the pending asynchronous read to complete.
(Inherited from DeviceStream.)
Public methodEndReadEvent
Public methodEndWrite
Ends an asynchronous write operation.
(Inherited from DeviceStream.)
Public methodEndWriteCharacteristicWithoutResponse
Public methodFlush (Overrides StreamFlush.)
Public methodRead (Overrides StreamRead(Byte, Int32, Int32).)
Public methodReadCccd(BleCharacteristic)
Public methodReadCccd(BleCharacteristic, BleRequestFlags)
Public methodReadCharacteristic(BleCharacteristic)
Public methodReadCharacteristic(BleCharacteristic, BleRequestFlags)
Public methodReadDescriptor(BleDescriptor)
Public methodReadDescriptor(BleDescriptor, BleRequestFlags)
Public methodReadEvent
Public methodWrite (Overrides StreamWrite(Byte, Int32, Int32).)
Public methodWriteCccd(BleCharacteristic, BleCccd)
Public methodWriteCccd(BleCharacteristic, BleCccd, BleRequestFlags)
Public methodWriteCharacteristic(BleCharacteristic, Byte)
Public methodWriteCharacteristic(BleCharacteristic, Byte, Int32, Int32)
Public methodWriteCharacteristic(BleCharacteristic, Byte, Int32, Int32, BleRequestFlags)
Public methodWriteCharacteristicWithoutResponse(BleCharacteristic, Byte)
Public methodWriteCharacteristicWithoutResponse(BleCharacteristic, Byte, Int32, Int32)
Public methodWriteCharacteristicWithoutResponse(BleCharacteristic, Byte, Int32, Int32, BleRequestFlags)
Public methodWriteDescriptor(BleDescriptor, Byte)
Public methodWriteDescriptor(BleDescriptor, Byte, Int32, Int32)
Public methodWriteDescriptor(BleDescriptor, Byte, Int32, Int32, BleRequestFlags)
Top
Events

  NameDescription
Public eventClosed
Occurs when the stream is closed.
(Inherited from DeviceStream.)
Public eventInterruptRequested
Occurs when Interruptible is true and another process or thread with higher priority would like to open the stream.
(Inherited from DeviceStream.)
Top
See Also

Reference