MockPeripheral
A simulated peripheral, as seen by its PeripheralSpecEventHandler.
It is the peripheral for which the event was called. The handler can use it to make the peripheral do something, e.g. disconnect, send a notification, or change its services, and to check its state.
The behavior is defined in PeripheralSpec, which implements this interface. See the documentation there for the details of each method.
See also
Inheritors
Properties
Functions
The peripheral requests bonding, or a bonding request from the phone is processed.
The peripheral requests a connection parameters update.
The peripheral disconnects.
The peripheral requests an MTU exchange. The MTU may be changed only once per connection.
The peripheral forgets the bond information, for example after a factory reset.
The peripheral resets. Connected clients get a link loss after the supervision timeout.
The peripheral changes the services it offers.
The peripheral notifies clients that the value of a characteristic has changed.