You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@plc4x.apache.org by Wolfgang Huse <wo...@nutanix.com> on 2020/04/30 07:27:59 UTC
Hello and Basic Question, mqtt-example
Hello!
I met Christofer the first Time this year at the BuildingIOT in Essen and he told me about PLC4x.
Finally I have some time to deal with the project and want to say Hello.
Since I only have Python experience so far, the first steps in Java are a bit unfamiliar.
I have a problem with the mqtt sample:
The sample config establishes a connection to test:plc4x-example-mqtt and sends different data even in the interval.
java -jar target/plc4j-hello-connectivity-mqtt-0.6.0-uber-jar.jar mqtt-connector.yml
Connected with return code SUCCESS
Publish acknowledged: {"intParam":"785285590","intParam2":"-1075569817"}
Publish acknowledged: {"intParam":"1947089580","intParam2":"-1742619214"}
Publish acknowledged: {"intParam":"-595050756","intParam2":"1191528931"}
When I use the Prosys OPC Simulator it seems that only the first received data packet is forwarded via mqtt...
java -jar target/plc4j-hello-connectivity-mqtt-0.6.0-uber-jar.jar mqtt-opc.yml
Connected with return code SUCCESS
Publish acknowledged: {"Counter":"8","Sinusoid":"0.8134733458143782"}
Publish acknowledged: {"Counter":"8","Sinusoid":"0.8134733458143782"}
Publish acknowledged: {"Counter":"8","Sinusoid":"0.8134733458143782"}
Is there anything I don’t have in mind to look at ?
Regards,
Wolfgang Huse
Re: Hello and Basic Question, mqtt-example
Posted by Christofer Dutz <ch...@c-ware.de>.
Hi Wolfgang,
First of all welcome to our fine little community :-)
We'll to our best to help you. I'll have a look later on as I'll be having two video conferences in the next two hours.
Perhaps someone else here can help a little earlier.
Chris
Am 30.04.20, 09:49 schrieb "Wolfgang Huse" <wo...@nutanix.com>:
Ah... inspecting the Logs of the Simulator and shows that there a done several READS (up to 140) within miliseconds which then a forwarded step by step based on the configured polling interval.
How does it happen that there are done so many requests ?
Regards,
Wolfgang
On 4/30/20, 9:28 AM, "Wolfgang Huse" <wo...@nutanix.com> wrote:
Hello!
I met Christofer the first Time this year at the BuildingIOT in Essen and he told me about PLC4x.
Finally I have some time to deal with the project and want to say Hello.
Since I only have Python experience so far, the first steps in Java are a bit unfamiliar.
I have a problem with the mqtt sample:
The sample config establishes a connection to test:plc4x-example-mqtt and sends different data even in the interval.
java -jar target/plc4j-hello-connectivity-mqtt-0.6.0-uber-jar.jar mqtt-connector.yml
Connected with return code SUCCESS
Publish acknowledged: {"intParam":"785285590","intParam2":"-1075569817"}
Publish acknowledged: {"intParam":"1947089580","intParam2":"-1742619214"}
Publish acknowledged: {"intParam":"-595050756","intParam2":"1191528931"}
When I use the Prosys OPC Simulator it seems that only the first received data packet is forwarded via mqtt...
java -jar target/plc4j-hello-connectivity-mqtt-0.6.0-uber-jar.jar mqtt-opc.yml
Connected with return code SUCCESS
Publish acknowledged: {"Counter":"8","Sinusoid":"0.8134733458143782"}
Publish acknowledged: {"Counter":"8","Sinusoid":"0.8134733458143782"}
Publish acknowledged: {"Counter":"8","Sinusoid":"0.8134733458143782"}
Is there anything I don’t have in mind to look at ?
Regards,
Wolfgang Huse
Re: Hello and Basic Question, mqtt-example
Posted by Wolfgang Huse <wo...@nutanix.com>.
Ah... inspecting the Logs of the Simulator and shows that there a done several READS (up to 140) within miliseconds which then a forwarded step by step based on the configured polling interval.
How does it happen that there are done so many requests ?
Regards,
Wolfgang
On 4/30/20, 9:28 AM, "Wolfgang Huse" <wo...@nutanix.com> wrote:
Hello!
I met Christofer the first Time this year at the BuildingIOT in Essen and he told me about PLC4x.
Finally I have some time to deal with the project and want to say Hello.
Since I only have Python experience so far, the first steps in Java are a bit unfamiliar.
I have a problem with the mqtt sample:
The sample config establishes a connection to test:plc4x-example-mqtt and sends different data even in the interval.
java -jar target/plc4j-hello-connectivity-mqtt-0.6.0-uber-jar.jar mqtt-connector.yml
Connected with return code SUCCESS
Publish acknowledged: {"intParam":"785285590","intParam2":"-1075569817"}
Publish acknowledged: {"intParam":"1947089580","intParam2":"-1742619214"}
Publish acknowledged: {"intParam":"-595050756","intParam2":"1191528931"}
When I use the Prosys OPC Simulator it seems that only the first received data packet is forwarded via mqtt...
java -jar target/plc4j-hello-connectivity-mqtt-0.6.0-uber-jar.jar mqtt-opc.yml
Connected with return code SUCCESS
Publish acknowledged: {"Counter":"8","Sinusoid":"0.8134733458143782"}
Publish acknowledged: {"Counter":"8","Sinusoid":"0.8134733458143782"}
Publish acknowledged: {"Counter":"8","Sinusoid":"0.8134733458143782"}
Is there anything I don’t have in mind to look at ?
Regards,
Wolfgang Huse