If I configure the writable point with pahoMqttConnRef and pahoMqttWrite, I receive the following error log:
<pahoMqtt.mqtt> {connRef:@p:mqtt:r:2adc35d6-3501ab87 "PahoMqtt Conn"} [err] Error onWrite sys::NullErr: java.lang.NullPointerException pahoMqttExt::PahoMqttConn.constructMessage (PahoMqttConn.fan:394) pahoMqttExt::PahoMqttConn.onWrite (PahoMqttConn.fan:341) connExt::Conn.onWrite2 (Conn.fan:864) connExt::Conn.doWrite (Conn.fan:853) connExt::Conn.receive (Conn.fan:320) pahoMqttExt::PahoMqttConn.receive (PahoMqttConn.fan:62) connExt::ConnActor.receive (ConnActor.fan:181) concurrent::Actor._dispatch (Actor.java:274) concurrent::Actor._work (Actor.java:229) concurrent::ThreadPool$Worker.run (ThreadPool.java:273)
Looking at the code, it seems that the pahoMqttQos tag is missing on the connector. If I add it, the write works. I assigned to the tag the value 1. Is it correct or is there a specific value to use?
Anyway, trying to add on the same point the pahoMqttCur and the pahoMqttWrite tags, or configuring two different points (one for reading and one for writing), it doesn't work anymore. I should be able to implement publish and subscribe functionality in the same MQTT client, right?
Versions:
- pahoMqttext v1.0.14
- SkySpark v3.0
- pahoMqtt v1.2.1
Thanks