Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mosquitto » MQTT connection via Siemens PLC(MQTT connection via Siemens PLC/CP)
MQTT connection via Siemens PLC [message #1860630] Tue, 22 August 2023 12:40 Go to next message
Florian LambrechtFriend
Messages: 3
Registered: August 2023
Junior Member
Hey together,

has anyone realised a connection via a Siemens PLC? I'm having trouble to connect to our broker, with the library that Siemens provides.

We've realized it so far with a Beckhoff PLC but Siemens is new to us. I've tried nearly anything to get it going but it won't connect at all.

We're running mqtt in a container on a proxmox server

Thanks so far!
Re: MQTT connection via Siemens PLC [message #1860662 is a reply to message #1860630] Thu, 24 August 2023 12:36 Go to previous messageGo to next message
Florian LambrechtFriend
Messages: 3
Registered: August 2023
Junior Member
Some logs:
Aug 24 12:05:58 mosquitto[57]: 1692878758: New connection from [IP-Address]:50874 on port 1883.
Aug 24 12:05:58 mosquitto[57]: 1692878758: New client connected from [IP-Address]:50874 as [ClientIdentifier] (p2, c1, k60).
Aug 24 12:05:59 mosquitto[57]: 1692878759: Bad client [ClientIdentifier] sending multiple CONNECT messages.
Aug 24 12:05:59 mosquitto[57]: 1692878759: Client [ClientIdentifier] disconnected due to protocol error.
Aug 24 12:06:03 mosquitto[57]: 1692878763: New connection from [IP-Address]:50876 on port 1883.
Aug 24 12:06:03 mosquitto[57]: 1692878763: New client connected from [IP-Address]:50876 as [ClientIdentifier] (p2, c1, k60).
Aug 24 12:06:04 mosquitto[57]: 1692878764: Bad client [ClientIdentifier] sending multiple CONNECT messages.
Aug 24 12:06:04 mosquitto[57]: 1692878764: Client [ClientIdentifier] disconnected due to protocol error.
Aug 24 12:06:08 mosquitto[57]: 1692878768: New connection from [IP-Address]:50878 on port 1883.
Aug 24 12:06:08 mosquitto[57]: 1692878768: New client connected from [IP-Address]:50878 as [ClientIdentifier] (p2, c1, k60).
Re: MQTT connection via Siemens PLC [message #1860750 is a reply to message #1860662] Thu, 31 August 2023 13:30 Go to previous message
Gambit Support is currently offline Gambit SupportFriend
Messages: 46
Registered: March 2019
Member
Since you have not received any answer, I'll venture one: you need to set the client identifier correctly
in order not to clash with another device with the same client identifier. This is a common problem
connecting devices with MQTT.
Previous Topic:Mosquitto
Next Topic:Support for shared subscripition on EdgexFoundry Jatarka's release
Goto Forum:
  


Current Time: Fri May 03 00:32:29 GMT 2024

Powered by FUDForum. Page generated in 0.03423 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top