MQTT Clarification [message #1764007] |
Tue, 23 May 2017 17:43  |
Eclipse User |
|
|
|
Hello there!
I am Ahmed, I am trying 4-diac for the first time.
I am using FORTE on Raspberry Pi. I want to use the MQTT communication. I installed MQTT Paho and compiled the FORTE on the Pi.
Now from my Windows system, I am running 4diac on it. In a new 4diac application I have created Publisher/Subscriber FBs. And set their IDs to
raw[].mqtt[192.168.1.200:1883, 123, switch/my]
192.168.1.200 is the IP where MQTT Broker is running.
switch/my is the topic.
My question is that, do I have to install MQTT paho on my windows system and recompile FORTE on windows? Or not?
I am not using FORTE on my local machine, so I guess I don't need it right?
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: MQTT Clarification [message #1766401 is a reply to message #1766399] |
Wed, 21 June 2017 02:51  |
Eclipse User |
|
|
|
The problem with MQTT is that it does not define a payload. Therefore in 4diac we decided, for giving you more flexibility, that on top of the mqtt layer you need a second layer which will take inputs of a publish FB and generate an according payload for MQTT or take the MQTT message and parse it on the outputs. If you both sides (i.e., PUBLISH and SUBSCRIBE) are in 4diac than you can exchange the raw with fbdk and connect any data type. Here you can even have more then one in or output. fbdk will encode the data in an asn1 data format as defined in the "IEC 61499 compliance profile for feasibility demonstrations", which is a very efficient encoding format.
If you have other encodings you may want to write your own layer. Please have a look in the FORTE development documentation to get more information on that.
|
|
|
Powered by
FUDForum. Page generated in 0.10395 seconds