Arendi.BleLibrary
5.6.0.1400
Arendi.BleLibrary for OnSemi RSL-10 Dongle
|
Interface all platform specific implementations of the peripheral fulfill. More...
Public Member Functions | |
void | Connect (int timeout=Constants.ConnectTimeout, CancellationToken cancellationToken=default(CancellationToken)) |
Tries to establish a connection to the peripheral. More... | |
void | Disconnect (int timeout=Constants.DisconnectTimeout, CancellationToken cancellationToken=default(CancellationToken)) |
Releases the connection. More... | |
List< IService > | DiscoverServices (int timeout=Constants.DiscoverServicesTimeout, CancellationToken cancellationToken=default(CancellationToken)) |
Discover all services of the peripheral. More... | |
int | ReadRssi (int timeout=Constants.ReadRssiTimeout, CancellationToken cancellationToken=default(CancellationToken)) |
Retrieves the current RSSI value for the peripheral while it is connected. More... | |
void | Encrypt (bool bonding=true, int timeout=Constants.EncryptTimeout, CancellationToken cancellationToken=default(CancellationToken)) |
Encrypt the current connection to the peripheral. More... | |
void | UpdateParameter (ParameterSet parameter, int timeout=Constants.UpdateParameterTimeout, CancellationToken cancellationToken=default(CancellationToken)) |
Update the connection parameter of the current connection to the peripheral. More... | |
void | UpdateDataLength (DataLengthSet requestedDataLength, int timeout=Constants.UpdateDataLengthTimeout, CancellationToken cancellationToken=default(CancellationToken)) |
Update the data length of the current connection to the peripheral. More... | |
void | UpdatePhy (PhySet requestedPhy, int timeout=Constants.UpdatePhyTimeout, CancellationToken cancellationToken=default(CancellationToken)) |
Update the phy of the current connection to the peripheral. More... | |
int | ExchangeAttMtu (int clientRxMtu, int timeout=Constants.ExchangeAttMtuTimeout, CancellationToken cancellationToken=default(CancellationToken)) |
Exchange the ATT MTU on the current connection to the peripheral. More... | |
Task | ConnectAsync (int timeout=Constants.ConnectTimeout, CancellationToken cancellationToken=default(CancellationToken)) |
Tries to establish a connection to the peripheral. More... | |
Task | DisconnectAsync (int timeout=Constants.DisconnectTimeout, CancellationToken cancellationToken=default(CancellationToken)) |
Releases the connection. More... | |
Task< List< IService > > | DiscoverServicesAsync (int timeout=Constants.DiscoverServicesTimeout, CancellationToken cancellationToken=default(CancellationToken)) |
Discover all services of the peripheral. More... | |
Task< int > | ReadRssiAsync (int timeout=Constants.ReadRssiTimeout, CancellationToken cancellationToken=default(CancellationToken)) |
Retrieves the current RSSI value for the peripheral while it is connected. More... | |
Task | EncryptAsync (bool bonding=true, int timeout=Constants.EncryptTimeout, CancellationToken cancellationToken=default(CancellationToken)) |
Encrypt the current connection to the peripheral. More... | |
Task | UpdateParameterAsync (ParameterSet parameter, int timeout=Constants.UpdateParameterTimeout, CancellationToken cancellationToken=default(CancellationToken)) |
Update the connection parameter of the current connection to the peripheral. More... | |
Task | UpdateDataLengthAsync (DataLengthSet requestedDataLength, int timeout=Constants.UpdateDataLengthTimeout, CancellationToken cancellationToken=default(CancellationToken)) |
Update the data length parameter of the current connection to the peripheral. More... | |
Task | UpdatePhyAsync (PhySet requestedPhy, int timeout=Constants.UpdatePhyTimeout, CancellationToken cancellationToken=default(CancellationToken)) |
Update the phy of the current connection to the peripheral. More... | |
Task< int > | ExchangeAttMtuAsync (int clientRxMtu, int timeout=Constants.ExchangeAttMtuTimeout, CancellationToken cancellationToken=default(CancellationToken)) |
Exchange the ATT MTU on the current connection to the peripheral. More... | |
IService | FindService (string uuid) |
Find a service in the service list. More... | |
IService | FindService (Uuid uuid) |
Find a service in the service list. More... | |
ICharacteristic | FindCharacteristic (string uuid) |
Find a characteristic in the service list. More... | |
ICharacteristic | FindCharacteristic (Uuid uuid) |
Find a characteristic in the service list. More... | |
ICharacteristic | CreateCharacteristicByHandle (Uuid uuid, CharacteristicProperties properties, UInt16 handleValue, UInt16 handleClientCharacteristicConfiguration=0) |
Create a characteristic based on it's handle values and behavior. More... | |
void | Update (IPeripheral peripheral) |
Update the static peripheral information as is connectable and it's name by later advertised peripheral. More... | |
void | ParameterChangeRequestReply (ParameterChangeRequest parameterChangeRequest, bool accept) |
Method to respond to a ParameterChangeRequest event. More... | |
void | AuthenticationPasskeyEntryReply (string passkey) |
Method to respond to a IPeripheral.AuthenticationPasskeyEntry event. More... | |
void | AuthenticationDisplayMatchReply (bool match) |
Method to respond to a AuthenticationPasskeyDisplay event if the MatchRequest was requested. More... | |
Properties | |
ICentral | Central [get] |
Gets the central instance the peripheral has been created by. More... | |
Uuid | Uuid [get] |
Get the UUID that identifies the peripheral uniquely. More... | |
string | Name [get, set] |
The name of the peripheral More... | |
BluetoothAddress | Address [get] |
Get the bluetooth address of the peripheral. More... | |
bool | IsConnected [get] |
Check if the peripheral is currently connected. More... | |
State | State [get] |
Get the state of the peripheral. More... | |
int | MaxWriteLength [get] |
Get the maximum write length for all writable characteristics. This value is in most cases dependent to the AttMtu value and is allways 3 less than the AttMtu because of a GATT write header length. More... | |
IBond | Bond [get] |
Get the bonding associated with this peripheral. If there is no bonding with this device or if the platform doesn't support bonding handling null is returned. More... | |
ParameterSet | Parameter [get] |
Get the connection parameter of the connection to this device. If the peripheral is not connected null is returned. If the adapter doesn't support access to connection parameters a NotSupportedException is thorwn. More... | |
SecuritySet | Security [get] |
Get the connection security of the connection to this device. If the peripheral is not connected null is returned. If the adapter doesn't support access to connection parameters a NotSupportedException is thorwn. More... | |
DataLengthSet | DataLength [get] |
Get the data length parameter of the connection to this device. If the peripheral is not connected null is returned. If the adapter doesn't support access to connection parameters a NotSupportedException is thorwn. More... | |
PhySet | Phy [get] |
Get the phys used for the connection to this device. If the peripheral is not connected null is returned. If the adapter doesn't support access to connection parameters a NotSupportedException is thorwn. More... | |
int | AttMtu [get] |
Get the current ATT MTU for the connection with this peripheral. The ATT MTU defines how many bytes can be written to the GATT server in one operation. After a connection has been established the ATT MTU is defined as 23. This gives a max write length of 20 bytes (3 byte GATT header). It is possible since the bluetooth 4.2 standard to exchange the MTU and negotiate a higher MTU size. If the ATT MTU changes a AttMtuChanged event is triggered. More... | |
IEnumerable< IService > | ServiceList [get] |
Get the service list of the peripheral. More... | |
ILog | Log [get] |
Logger instance. More... | |
Events | |
EventHandler< StateChangedEventArgs > | StateChanged |
Event triggered, when the state of the peripheral changes. More... | |
EventHandler< ConnectedEventArgs > | Connected |
Event triggered, when the peripheral gets connected. More... | |
EventHandler< DisconnectedEventArgs > | Disconnected |
Event triggered, when the peripheral gets disconnected. More... | |
EventHandler< EncryptedEventArgs > | Encrypted |
Event triggered if the connection is encrypted. More... | |
EventHandler< AuthenticationPasskeyDisplayEventArgs > | AuthenticationPasskeyDisplay |
Event triggered if a passkey has to be displayed. More... | |
EventHandler< AuthenticationPasskeyEntryEventArgs > | AuthenticationPasskeyEntry |
Event triggered if a passkey has to be inserted. The passkey should be provided by calling AuthenticationPasskeyEntryReply. More... | |
EventHandler< AuthenticationPasskeyCompleteEventArgs > | AuthenticationPasskeyComplete |
Event triggered if a passkey display (see AuthenticationPasskeyDisplay) or entry (AuthenticationPasskeyEntry) may be terminated.. More... | |
EventHandler< BondChangedEventArgs > | BondChanged |
Event triggered, when the bond property has changed. More... | |
EventHandler< ParameterChangedEventArgs > | ParameterChanged |
Event triggered, when the connection parameter have changed. More... | |
EventHandler< ParameterChangeRequestEventArgs > | ParameterChangeRequest |
Event triggered, when the a connection parameter has been received. To respond to the request the method ParameterChangeRequestReply may be called. More... | |
EventHandler< SecurityChangedEventArgs > | SecurityChanged |
Event triggered, when the security has changed. More... | |
EventHandler< DataLengthChangedEventArgs > | DataLengthChanged |
Event triggered, when the data length has changed. More... | |
EventHandler< PhyChangedEventArgs > | PhyChanged |
Event triggered, when the phy has changed. More... | |
EventHandler< AttMtuChangedEventArgs > | AttMtuChanged |
Event triggered, when the ATT MTU has changed. More... | |
Interface all platform specific implementations of the peripheral fulfill.
The peripheral object supports "Task Asynchronous Programming". The methods with the ending "Async" handle its operation in a task which can be awaited on the upper level. The TAP methods won't trigger events unless other described. Error cases in TAP events are always triggering an exception based on the type BleException.
void Arendi.BleLibrary.Remote.IPeripheral.AuthenticationDisplayMatchReply | ( | bool | match | ) |
Method to respond to a AuthenticationPasskeyDisplay event if the MatchRequest was requested.
match | True if the displayed key matches the displayed key shown on the peer device, false if not. |
Implemented in Arendi.BleLibrary.Remote.PeripheralBase, and OnSemi.RSL10.Adapter.Remote.PeripheralBase.
void Arendi.BleLibrary.Remote.IPeripheral.AuthenticationPasskeyEntryReply | ( | string | passkey | ) |
Method to respond to a IPeripheral.AuthenticationPasskeyEntry event.
passkey | Passkey to be used for authentication. |
Implemented in Arendi.BleLibrary.Remote.PeripheralBase, and OnSemi.RSL10.Adapter.Remote.PeripheralBase.
void Arendi.BleLibrary.Remote.IPeripheral.Connect | ( | int | timeout = Constants.ConnectTimeout , |
CancellationToken | cancellationToken = default(CancellationToken) |
||
) |
Tries to establish a connection to the peripheral.
timeout | Optional timeout [ms] (Default: Constants.ConnectTimeout). The timeout may be set to infinite by using Timeout.Infinite |
cancellationToken | Token to cancel an ongoing async operation. |
Implemented in OnSemi.RSL10.Adapter.Remote.PeripheralBase, and Arendi.BleLibrary.Remote.PeripheralBase.
Task Arendi.BleLibrary.Remote.IPeripheral.ConnectAsync | ( | int | timeout = Constants.ConnectTimeout , |
CancellationToken | cancellationToken = default(CancellationToken) |
||
) |
Tries to establish a connection to the peripheral.
timeout | Optional timeout [ms] (Default: Constants.ConnectTimeout). The timeout may be set to infinite by using Timeout.Infinite |
cancellationToken | Token to cancel an ongoing async operation. |
Implemented in Arendi.BleLibrary.Remote.PeripheralBase, and OnSemi.RSL10.Adapter.Remote.PeripheralBase.
ICharacteristic Arendi.BleLibrary.Remote.IPeripheral.CreateCharacteristicByHandle | ( | Uuid | uuid, |
CharacteristicProperties | properties, | ||
UInt16 | handleValue, | ||
UInt16 | handleClientCharacteristicConfiguration = 0 |
||
) |
Create a characteristic based on it's handle values and behavior.
This allows access to characteristics without the need of a service discovery but you need to know the used attribute handles.
This feature is not supported by all platforms.
uuid | The UUID of the characteristic. |
properties | Properties of the characteristic. |
handleValue | Handle of the value attribute. |
handleClientCharacteristicConfiguration | Handle of the client characteristic configuration attribute. May be set to 0 if not used. |
Implemented in Arendi.BleLibrary.Remote.PeripheralBase, and OnSemi.RSL10.Adapter.Remote.PeripheralBase.
void Arendi.BleLibrary.Remote.IPeripheral.Disconnect | ( | int | timeout = Constants.DisconnectTimeout , |
CancellationToken | cancellationToken = default(CancellationToken) |
||
) |
Releases the connection.
timeout | Optional timeout [ms] (Default: Constants.DisconnectTimeout). The timeout may be set to infinite by using Timeout.Infinite |
cancellationToken | Token to cancel an ongoing async operation. |
Implemented in OnSemi.RSL10.Adapter.Remote.PeripheralBase, and Arendi.BleLibrary.Remote.PeripheralBase.
Task Arendi.BleLibrary.Remote.IPeripheral.DisconnectAsync | ( | int | timeout = Constants.DisconnectTimeout , |
CancellationToken | cancellationToken = default(CancellationToken) |
||
) |
Releases the connection.
timeout | Optional timeout [ms] (Default: Constants.DisconnectTimeout). The timeout may be set to infinite by using Timeout.Infinite |
cancellationToken | Token to cancel an ongoing async operation. |
Implemented in Arendi.BleLibrary.Remote.PeripheralBase, and OnSemi.RSL10.Adapter.Remote.PeripheralBase.
List<IService> Arendi.BleLibrary.Remote.IPeripheral.DiscoverServices | ( | int | timeout = Constants.DiscoverServicesTimeout , |
CancellationToken | cancellationToken = default(CancellationToken) |
||
) |
Discover all services of the peripheral.
timeout | Optional timeout [ms] (Default: Constants.DiscoverServicesTimeout). The timeout may be set to infinite by using Timeout.Infinite |
cancellationToken | Token to cancel an ongoing async operation. |
Implemented in OnSemi.RSL10.Adapter.Remote.PeripheralBase, and Arendi.BleLibrary.Remote.PeripheralBase.
Task<List<IService> > Arendi.BleLibrary.Remote.IPeripheral.DiscoverServicesAsync | ( | int | timeout = Constants.DiscoverServicesTimeout , |
CancellationToken | cancellationToken = default(CancellationToken) |
||
) |
Discover all services of the peripheral.
timeout | Optional timeout [ms] (Default: Constants.DiscoverServicesTimeout). The timeout may be set to infinite by using Timeout.Infinite |
cancellationToken | Token to cancel an ongoing async operation. |
Implemented in Arendi.BleLibrary.Remote.PeripheralBase, and OnSemi.RSL10.Adapter.Remote.PeripheralBase.
void Arendi.BleLibrary.Remote.IPeripheral.Encrypt | ( | bool | bonding = true , |
int | timeout = Constants.EncryptTimeout , |
||
CancellationToken | cancellationToken = default(CancellationToken) |
||
) |
Encrypt the current connection to the peripheral.
bonding | True to establish a bonding if possible, false for only pairing. |
timeout | Optional timeout [ms] (Default: Constants.EncryptTimeout). The timeout may be set to infinite by using Timeout.Infinite |
cancellationToken | Token to cancel an ongoing async operation. |
Implemented in Arendi.BleLibrary.Remote.PeripheralBase, and OnSemi.RSL10.Adapter.Remote.PeripheralBase.
Task Arendi.BleLibrary.Remote.IPeripheral.EncryptAsync | ( | bool | bonding = true , |
int | timeout = Constants.EncryptTimeout , |
||
CancellationToken | cancellationToken = default(CancellationToken) |
||
) |
Encrypt the current connection to the peripheral.
bonding | True to establish a bonding if possible, false for only pairing. |
timeout | Optional timeout [ms] (Default: Constants.EncryptTimeout). The timeout may be set to infinite by using Timeout.Infinite |
cancellationToken | Token to cancel an ongoing async operation. |
Implemented in Arendi.BleLibrary.Remote.PeripheralBase, and OnSemi.RSL10.Adapter.Remote.PeripheralBase.
int Arendi.BleLibrary.Remote.IPeripheral.ExchangeAttMtu | ( | int | clientRxMtu, |
int | timeout = Constants.ExchangeAttMtuTimeout , |
||
CancellationToken | cancellationToken = default(CancellationToken) |
||
) |
Exchange the ATT MTU on the current connection to the peripheral.
clientRxMtu | Client RX MTU size. |
timeout | Optional timeout [ms] (Default: Constants.ExchangeAttMtuTimeout). The timeout may be set to infinite by using Timeout.Infinite |
cancellationToken | Token to cancel an ongoing async operation. |
Implemented in Arendi.BleLibrary.Remote.PeripheralBase, and OnSemi.RSL10.Adapter.Remote.PeripheralBase.
Task<int> Arendi.BleLibrary.Remote.IPeripheral.ExchangeAttMtuAsync | ( | int | clientRxMtu, |
int | timeout = Constants.ExchangeAttMtuTimeout , |
||
CancellationToken | cancellationToken = default(CancellationToken) |
||
) |
Exchange the ATT MTU on the current connection to the peripheral.
clientRxMtu | Client RX MTU size. |
timeout | Optional timeout [ms] (Default: Constants.ExchangeAttMtuTimeout). The timeout may be set to infinite by using Timeout.Infinite |
cancellationToken | Token to cancel an ongoing async operation. |
Implemented in Arendi.BleLibrary.Remote.PeripheralBase, and OnSemi.RSL10.Adapter.Remote.PeripheralBase.
ICharacteristic Arendi.BleLibrary.Remote.IPeripheral.FindCharacteristic | ( | string | uuid | ) |
Find a characteristic in the service list.
The service list is available after completing the service discovery (DiscoverServicesAsync).
uuid | The UUID of the characteristic to search for. |
null
if no service has been found.It is not recommended to search the complete peripheral for characteristic UUID's. Some characteristic UUID's may exist in more than one service and you won't know which characteristic you get. Use FindService(BleLibrary.Uuid) or FindService(string) first to search for the service and search the characteristic in the service.
The accessible service list may be limited if you use a limited BleLibrary edition. Contact Arendi AG (www.arendi.ch) for further information.
Implemented in Arendi.BleLibrary.Remote.PeripheralBase, and OnSemi.RSL10.Adapter.Remote.PeripheralBase.
ICharacteristic Arendi.BleLibrary.Remote.IPeripheral.FindCharacteristic | ( | Uuid | uuid | ) |
Find a characteristic in the service list.
The service list is available after completing the service discovery (DiscoverServicesAsync).
uuid | The UUID of the characteristic to search for. |
null
if no service has been found.It is not recommended to search the complete peripheral for characteristic UUID's. Some characteristic UUID's may exist in more than one service and you won't know which characteristic you get. Use FindService(BleLibrary.Uuid) or FindService(string) first to search for the service and search the characteristic in the service.
The accessible service list may be limited if you use a limited BleLibrary edition. Contact Arendi AG (www.arendi.ch) for further information.
Implemented in Arendi.BleLibrary.Remote.PeripheralBase, and OnSemi.RSL10.Adapter.Remote.PeripheralBase.
IService Arendi.BleLibrary.Remote.IPeripheral.FindService | ( | string | uuid | ) |
Find a service in the service list.
The service list is available after completing the service discovery (DiscoverServicesAsync).
uuid | The UUID of the service to search for. |
null
if no service has been found.The accessible service list may be limited if you use a limited BleLibrary edition. Contact Arendi AG (www.arendi.ch) for further information.
Implemented in Arendi.BleLibrary.Remote.PeripheralBase, and OnSemi.RSL10.Adapter.Remote.PeripheralBase.
Find a service in the service list.
The service list is available after completing the service discovery (DiscoverServicesAsync).
uuid | The UUID of the service to search for. |
null
if no service has been found.The accessible service list may be limited if you use a limited BleLibrary edition. Contact Arendi AG (www.arendi.ch) for further information.
Implemented in Arendi.BleLibrary.Remote.PeripheralBase, and OnSemi.RSL10.Adapter.Remote.PeripheralBase.
void Arendi.BleLibrary.Remote.IPeripheral.ParameterChangeRequestReply | ( | ParameterChangeRequest | parameterChangeRequest, |
bool | accept | ||
) |
Method to respond to a ParameterChangeRequest event.
parameterChangeRequest | Parameter change request given by the ParameterChangeRequest event. |
accept | Do we accept the parameter change request or not? |
Implemented in Arendi.BleLibrary.Remote.PeripheralBase, and OnSemi.RSL10.Adapter.Remote.PeripheralBase.
int Arendi.BleLibrary.Remote.IPeripheral.ReadRssi | ( | int | timeout = Constants.ReadRssiTimeout , |
CancellationToken | cancellationToken = default(CancellationToken) |
||
) |
Retrieves the current RSSI value for the peripheral while it is connected.
timeout | Optional timeout [ms] (Default: Constants.ReadRssiTimeout). The timeout may be set to infinite by using Timeout.Infinite |
cancellationToken | Token to cancel an ongoing async operation. |
Implemented in Arendi.BleLibrary.Remote.PeripheralBase, and OnSemi.RSL10.Adapter.Remote.PeripheralBase.
Task<int> Arendi.BleLibrary.Remote.IPeripheral.ReadRssiAsync | ( | int | timeout = Constants.ReadRssiTimeout , |
CancellationToken | cancellationToken = default(CancellationToken) |
||
) |
Retrieves the current RSSI value for the peripheral while it is connected.
timeout | Optional timeout [ms] (Default: Constants.ReadRssiTimeout). The timeout may be set to infinite by using Timeout.Infinite |
cancellationToken | Token to cancel an ongoing async operation. |
Implemented in Arendi.BleLibrary.Remote.PeripheralBase, and OnSemi.RSL10.Adapter.Remote.PeripheralBase.
void Arendi.BleLibrary.Remote.IPeripheral.Update | ( | IPeripheral | peripheral | ) |
Update the static peripheral information as is connectable and it's name by later advertised peripheral.
If the UUID mismatches nothing is done.
peripheral | Later advertised peripheral that should update the current peripheral. |
Implemented in Arendi.BleLibrary.Remote.PeripheralBase, and OnSemi.RSL10.Adapter.Remote.PeripheralBase.
void Arendi.BleLibrary.Remote.IPeripheral.UpdateDataLength | ( | DataLengthSet | requestedDataLength, |
int | timeout = Constants.UpdateDataLengthTimeout , |
||
CancellationToken | cancellationToken = default(CancellationToken) |
||
) |
Update the data length of the current connection to the peripheral.
requestedDataLength | Data length parameters to be set. |
timeout | Optional timeout [ms] (Default: Constants.UpdateDataLengthTimeout). The timeout may be set to infinite by using Timeout.Infinite |
cancellationToken | Token to cancel an ongoing async operation. |
Implemented in Arendi.BleLibrary.Remote.PeripheralBase, and OnSemi.RSL10.Adapter.Remote.PeripheralBase.
Task Arendi.BleLibrary.Remote.IPeripheral.UpdateDataLengthAsync | ( | DataLengthSet | requestedDataLength, |
int | timeout = Constants.UpdateDataLengthTimeout , |
||
CancellationToken | cancellationToken = default(CancellationToken) |
||
) |
Update the data length parameter of the current connection to the peripheral.
requestedDataLength | Data length parameters to be set. |
timeout | Optional timeout [ms] (Default: Constants.UpdateDataLengthTimeout). The timeout may be set to infinite by using Timeout.Infinite |
cancellationToken | Token to cancel an ongoing async operation. |
Implemented in Arendi.BleLibrary.Remote.PeripheralBase, and OnSemi.RSL10.Adapter.Remote.PeripheralBase.
void Arendi.BleLibrary.Remote.IPeripheral.UpdateParameter | ( | ParameterSet | parameter, |
int | timeout = Constants.UpdateParameterTimeout , |
||
CancellationToken | cancellationToken = default(CancellationToken) |
||
) |
Update the connection parameter of the current connection to the peripheral.
parameter | Connection parameters to be set. |
timeout | Optional timeout [ms] (Default: Constants.UpdateParameterTimeout). The timeout may be set to infinite by using Timeout.Infinite |
cancellationToken | Token to cancel an ongoing async operation. |
Implemented in Arendi.BleLibrary.Remote.PeripheralBase, and OnSemi.RSL10.Adapter.Remote.PeripheralBase.
Task Arendi.BleLibrary.Remote.IPeripheral.UpdateParameterAsync | ( | ParameterSet | parameter, |
int | timeout = Constants.UpdateParameterTimeout , |
||
CancellationToken | cancellationToken = default(CancellationToken) |
||
) |
Update the connection parameter of the current connection to the peripheral.
parameter | Connection parameters to be set. |
timeout | Optional timeout [ms] (Default: Constants.UpdateParameterTimeout). The timeout may be set to infinite by using Timeout.Infinite |
cancellationToken | Token to cancel an ongoing async operation. |
Implemented in Arendi.BleLibrary.Remote.PeripheralBase, and OnSemi.RSL10.Adapter.Remote.PeripheralBase.
void Arendi.BleLibrary.Remote.IPeripheral.UpdatePhy | ( | PhySet | requestedPhy, |
int | timeout = Constants.UpdatePhyTimeout , |
||
CancellationToken | cancellationToken = default(CancellationToken) |
||
) |
Update the phy of the current connection to the peripheral.
requestedPhy | Phys to be set. |
timeout | Optional timeout [ms] (Default: Constants.UpdatePhyTimeout). The timeout may be set to infinite by using Timeout.Infinite |
cancellationToken | Token to cancel an ongoing async operation. |
Implemented in Arendi.BleLibrary.Remote.PeripheralBase, and OnSemi.RSL10.Adapter.Remote.PeripheralBase.
Task Arendi.BleLibrary.Remote.IPeripheral.UpdatePhyAsync | ( | PhySet | requestedPhy, |
int | timeout = Constants.UpdatePhyTimeout , |
||
CancellationToken | cancellationToken = default(CancellationToken) |
||
) |
Update the phy of the current connection to the peripheral.
requestedPhy | Phys to be set. |
timeout | Optional timeout [ms] (Default: Constants.UpdatePhyTimeout). The timeout may be set to infinite by using Timeout.Infinite |
cancellationToken | Token to cancel an ongoing async operation. |
Implemented in Arendi.BleLibrary.Remote.PeripheralBase, and OnSemi.RSL10.Adapter.Remote.PeripheralBase.
|
get |
Get the bluetooth address of the peripheral.
This information is not available on all platforms. Platforms not supporting this information will have set this property to null.
|
get |
Get the current ATT MTU for the connection with this peripheral. The ATT MTU defines how many bytes can be written to the GATT server in one operation. After a connection has been established the ATT MTU is defined as 23. This gives a max write length of 20 bytes (3 byte GATT header). It is possible since the bluetooth 4.2 standard to exchange the MTU and negotiate a higher MTU size. If the ATT MTU changes a AttMtuChanged event is triggered.
|
get |
Get the bonding associated with this peripheral.
If there is no bonding with this device or if the platform doesn't support bonding handling null is returned.
|
get |
Gets the central instance the peripheral has been created by.
|
get |
Get the data length parameter of the connection to this device. If the peripheral is not connected null is returned. If the adapter doesn't support access to connection parameters a NotSupportedException is thorwn.
|
get |
Check if the peripheral is currently connected.
|
get |
Logger instance.
|
get |
Get the maximum write length for all writable characteristics. This value is in most cases dependent to the AttMtu value and is allways 3 less than the AttMtu because of a GATT write header length.
|
getset |
The name of the peripheral
|
get |
Get the connection parameter of the connection to this device. If the peripheral is not connected null is returned. If the adapter doesn't support access to connection parameters a NotSupportedException is thorwn.
|
get |
Get the phys used for the connection to this device. If the peripheral is not connected null is returned. If the adapter doesn't support access to connection parameters a NotSupportedException is thorwn.
|
get |
Get the connection security of the connection to this device. If the peripheral is not connected null is returned. If the adapter doesn't support access to connection parameters a NotSupportedException is thorwn.
|
get |
Get the service list of the peripheral.
This list may be limited if you use a limited BleLibrary edition. Contact Arendi AG (www.arendi.ch) for further information.
|
get |
Get the state of the peripheral.
|
get |
Get the UUID that identifies the peripheral uniquely.
EventHandler<AttMtuChangedEventArgs> Arendi.BleLibrary.Remote.IPeripheral.AttMtuChanged |
Event triggered, when the ATT MTU has changed.
EventHandler<AuthenticationPasskeyCompleteEventArgs> Arendi.BleLibrary.Remote.IPeripheral.AuthenticationPasskeyComplete |
Event triggered if a passkey display (see AuthenticationPasskeyDisplay) or entry (AuthenticationPasskeyEntry) may be terminated..
EventHandler<AuthenticationPasskeyDisplayEventArgs> Arendi.BleLibrary.Remote.IPeripheral.AuthenticationPasskeyDisplay |
Event triggered if a passkey has to be displayed.
EventHandler<AuthenticationPasskeyEntryEventArgs> Arendi.BleLibrary.Remote.IPeripheral.AuthenticationPasskeyEntry |
Event triggered if a passkey has to be inserted. The passkey should be provided by calling AuthenticationPasskeyEntryReply.
EventHandler<BondChangedEventArgs> Arendi.BleLibrary.Remote.IPeripheral.BondChanged |
Event triggered, when the bond property has changed.
EventHandler<ConnectedEventArgs> Arendi.BleLibrary.Remote.IPeripheral.Connected |
Event triggered, when the peripheral gets connected.
EventHandler<DataLengthChangedEventArgs> Arendi.BleLibrary.Remote.IPeripheral.DataLengthChanged |
Event triggered, when the data length has changed.
EventHandler<DisconnectedEventArgs> Arendi.BleLibrary.Remote.IPeripheral.Disconnected |
Event triggered, when the peripheral gets disconnected.
EventHandler<EncryptedEventArgs> Arendi.BleLibrary.Remote.IPeripheral.Encrypted |
Event triggered if the connection is encrypted.
EventHandler<ParameterChangedEventArgs> Arendi.BleLibrary.Remote.IPeripheral.ParameterChanged |
Event triggered, when the connection parameter have changed.
EventHandler<ParameterChangeRequestEventArgs> Arendi.BleLibrary.Remote.IPeripheral.ParameterChangeRequest |
Event triggered, when the a connection parameter has been received. To respond to the request the method ParameterChangeRequestReply may be called.
If no handler is attached to this event any parameter change request is accepted.
EventHandler<PhyChangedEventArgs> Arendi.BleLibrary.Remote.IPeripheral.PhyChanged |
Event triggered, when the phy has changed.
EventHandler<SecurityChangedEventArgs> Arendi.BleLibrary.Remote.IPeripheral.SecurityChanged |
Event triggered, when the security has changed.
EventHandler<StateChangedEventArgs> Arendi.BleLibrary.Remote.IPeripheral.StateChanged |
Event triggered, when the state of the peripheral changes.