buildCapturingLocalService
fun buildCapturingLocalService(uuid: UUID, wrapperBuilder: LocalServiceWrapperBuilder, onNotify: suspend (LocalCharacteristic.Notifiable, ConnectedDevice, ByteArray) -> Boolean = { _, _, _ -> true }, service: LocalService.DSL.() -> Unit): CapturedLocalService
Test support builder that constructs a LocalService while capturing the per-attribute read and write actions and the subscribable characteristics into a CapturedLocalService.
Return
the CapturedLocalService holding the built service and all captured actions
Parameters
uuid
the UUID of the LocalService
wrapperBuilder
the LocalServiceWrapperBuilder used to create the platform service
onNotify
invoked when a characteristic notifies a device
service
the LocalService.DSL block describing the service