V/Kable/Observation: 39d79ee2-1ef7-0ac0-b8be-4c500...
# juul-libraries
c
V/Kable/Observation: 39d79ee2-1ef7-0ac0-b8be-4c500c92cbf9 Suppressed failure: com.juul.kable.NotReadyException
t
Can you provide additional logs, please?
c
Yes, thats the console in xcode is returning
I'm developing a library in kotlin native to be able to access and parse FTMS ble devices that is an standard in some industries to access ble devices related to the fitness
To this purpose i'm making a little wrapper with this library that I starting with the 0.22 version, but unfortunately in this version in ios is not working for me, the code is failing not delivering the results of characteristics info with no reasons, then I decided to migrate to version 0.24, facing this problem since then
t
It looks like a bug. I can investigate more later this week. Are you able to file a bug, or would you like me to?
c
Wait please, I'm testing in the 0.23 version to check if this error is a regression or not
Ok the error is a regression I have no doubts
about this
t
Issue doesn’t happen w/ 0.23.0?
c
Nop, I have another weird behavior I think is not related with this problem
t
Thanks for testing 0.23.0! Knowing it is a regression is very helpful.
c
Your welcome
Then, closed this topic, any idea that why 0.23 version is not emitting in collect the result althought, I can see the results of notify in console? Like you can see in the last log I sended it
t
Can you share a code snippet?
c
Ios code or kotlin code?
t
Whatever code is calling
collect
on the
observe
.
c
Copy code
fun treadmillData(
    connection: DeviceConnection
): Flow<TreadmillData> =

    connection.getConnection().observe(
        characteristicOf(
            FitFlowServices.FitnessMachine.uuid,
            FtmsCharacteristic.TreadmillData.uuid
        )
    ).map {
        TreadmillDataFlags.byteToModel(it)
    }.runningReduce { accumulator, value ->
        accumulator + value
    }.map {
        TreadmillData(it)
    }
This is the code, this code is working fine in Android
t
Can you add an
onEach
after the
observe
(and before the first
map
) to confirm you are not getting emissions?
Sorry, I’m heading to bed. I can try to find time tomorrow, or later this week, to help you some more.
c
Ok thanks so much, let's keep in touch
t
I'm not able to repro your issue with devices I have. Is the device you're connecting to publicly available? If not, I'll add additional logging in a snapshot build for you to try. Let me know. Thanks!
c
Thanks I fixed the bug and I comment the issue thankss for the support
t
Awesome! Thanks for following up!
So, the issue is good to close, right?
c
Yes I'ts not a regression it was simply a mess with coroutines scope