After updating the KMQTT Client library ( https://gitlab.com/napperley/kmqtt-client ) to use Kotlin 1.4.0 the callback handling breaks. What changes were made to CFunction in Kotlin 1.4.0?
l
louiscad
11/30/2020, 5:19 AM
You need to tell how it is breaking at the very least for us to help.
Kotlin Native's memory model is shifting around which could be causing problems. The MQTTClient_setCallbacks function does use multiple threads which could be causing issues.
napperley
12/01/2020, 3:16 AM
Found out that I was using the wrong MQTT QoS for the messages when publishing 🤦♂️ (in the project which is using the library). With that sorted the callbacks are now working 😄.