Cannot pass through a reference to a Kotlin function as a parameter. There seems to be a C interop mismatch with incorrect mapping files being generated for the Paho MQTT Client library ( https://www.eclipse.org/paho/clients/c/ ).
napperley
06/28/2019, 5:58 AM
Here is a MQTT subscribe example that is written in C. This example is included in the Paho MQTT Client library.
can only handle non-null pointer, while callback is probably expected to take nullable pointer.
👍 1
n
napperley
06/28/2019, 10:29 PM
Can be difficult at times to find out what the types are when there is so much noise involved (the boat load of comments that shouldn't be visible).
napperley
06/28/2019, 10:32 PM
The message presented indicates two errors when there is only one which is a bit confusing (only the type on the first callback parameter needs to be corrected, not the second one).
napperley
06/28/2019, 10:35 PM
Will the error reporting be improved to be clearer (aka less confusing)?