Managed Peripheral
Managed peripherals are smart versions of the peripheral. They are designed to deal with things that can make Bluetooth difficult such as:
- When reconnecting to a peripheral, most users don't always realize that they need to discard any references they had to the previous characteristic instance
- When reconnecting, not only does it re-retrieve the characteristic, it rehooks it if you were originally listening for notifications on it
- Works like a viewmodel as opposed to a bunch of RX observables. We monitor the device name
Unlike their counterpart IPeripheral, managed peripherals are NOT meant to deal with general scans and retrieval of "all services/characteristics". Generally, when you are working with BLE peripherals - you would know the device protocols you're using and how to work with its characteristics.
Creating a Managed Peripheral
After using the BleManager to scan/find an IPeripheral, you can use the following:
IPeripheral peripheral; //
var managed = peripheral.CreateManaged();
Monitor RSSI