diff --git a/packages/reactive_ble_mobile/android/src/main/kotlin/com/signify/hue/flutterreactiveble/channelhandlers/RestoredDeviceHandler.kt b/packages/reactive_ble_mobile/android/src/main/kotlin/com/signify/hue/flutterreactiveble/channelhandlers/RestoredDeviceHandler.kt index 8a2aabed..699b62f6 100644 --- a/packages/reactive_ble_mobile/android/src/main/kotlin/com/signify/hue/flutterreactiveble/channelhandlers/RestoredDeviceHandler.kt +++ b/packages/reactive_ble_mobile/android/src/main/kotlin/com/signify/hue/flutterreactiveble/channelhandlers/RestoredDeviceHandler.kt @@ -1,6 +1,7 @@ package com.signify.hue.flutterreactiveble.channelhandlers import io.flutter.plugin.common.EventChannel +import com.signify.hue.flutterreactiveble.ProtobufModel as pb class RestoredDeviceHandler() : EventChannel.StreamHandler { private var sink: EventChannel.EventSink? = null @@ -11,7 +12,11 @@ class RestoredDeviceHandler() : EventChannel.StreamHandler { ) { eventSink?.let { sink = eventSink + + val message = pb.RestoredDeviceInfoCollection.newBuilder().build() + eventSink.success(message.toByteArray()) } + } override fun onCancel(objectSink: Any?) {