Hello
i try use a Siemens Logo with Demopad
I have running a Raspberry Pi wit logocontro (Web server) to control the Logo.
It works fine when i use "send data to a website"
http://logocontrol:8088/rest/devices/1/methods/1 for switching Channel 1.
when i sent this command from firefox i get a feedbck for the status.
But now i want get a feedback from logocontrol
and i tried to do it like with my shelly dimmer and use the Get command
GET /rest/devices/1/methods/1 HTTP/1.1\x0D\x0A
but it dosent work. Can sombody help me.
Thanks Jens
Siemens Logo
Re: Siemens Logo
Suggest trying the command in Hercules to see any feedback which might give you a clue why it is not working. Note HTTP 1.1 GET requests require a host parameter, which might be one reason.
Re: Siemens Logo
Hello
that i have already tried.
the Hecules says only bad request and close the connection.
and from wire shark i got this
that i have already tried.
the Hecules says only bad request and close the connection.
and from wire shark i got this
You do not have the required permissions to view the files attached to this post.
Re: Siemens Logo
Yes, so that specifically says invalid host - you need to add the host parameter for HTTP 1.1 requests, eg
GET /rest/devices/1/methods/1 HTTP/1.1\x0D\x0AHost:logocontrol:8088\x0D\x0A
GET /rest/devices/1/methods/1 HTTP/1.1\x0D\x0AHost:logocontrol:8088\x0D\x0A
Re: Siemens Logo
Hello
now i got a feedback
but i got only a part of it.
with (.*) i got only "HTTP/1.1 200"
i want only the true at the end as feedback
Can you help me again?
now i got a feedback
but i got only a part of it.
with (.*) i got only "HTTP/1.1 200"
i want only the true at the end as feedback
Can you help me again?
You do not have the required permissions to view the files attached to this post.
Re: Siemens Logo
For the feedback to work, you need to specify a response terminator - a character or characters that the data ends with. You could try to match simply (true) and a separate (false) condition, but it doesn't look like the data ends with a known character, which makes feedback parsing difficult.