|MQTT issues with FORTE running on Raspberry Pi [message #1732630]
||Wed, 18 May 2016 09:07
|| Herwig Eichler
Registered: February 2016
I'd like to use MQTT to link my FORTE Installation on a Raspberry Pi based hardware to openHAB (Java OSGi Framework for Homeautomation).
I followed Monikas instructions in the FORTE documentation to compile Eclipse Paho MQTT Support into FORTE (crosscompiled on a Linux VM with Eclipse CDT Mars SR2, ok not entirely true, the Eclipse Paho MQTT C library was built in the command line without Eclipse CDT). So far everything went fine. I installed a local Mosquitto Broker on the Raspberry Pi and used a Publish FB to send some current temperature values from FORTE to the Broker. I can subscribe to the topic within my local network.
Now two things happen:
1. After a couple of cycles (cycle time 250ms) , lets say some minutes, FORTE crashes with a Segmentation fault, which seems to happen in the _IO_vprintf_internal() function according to the GDB stacktrace.
2. a character is added to my payload automatically. My identifier of the Publish FB looks like this fbdk.mqtt[tcp://127.0.0.1:1883, forte, conmeleon/Temp]
So when I publish "247" (means 24.7°C). The subscribing MQTT Client (MQTT.fx on OSX Yosemite) receives "p247". The "p" might be the last character of the topic descriptor, but i didn't test this yet.
Any hints and tipps would be highly appreciated
Powered by FUDForum
. Page generated in 0.01998 seconds