Generic HTTP to send a value, what exate syntax ?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
LudoFr
New user
Posts: 5
Joined: 26 May 2018, 16:09

Generic HTTP to send a value, what exate syntax ?

#1 Post by LudoFr » 26 May 2018, 17:52

Hello everyone,
I just discovered the modules Wemos D1 mini.
I bought one and connected it to a BMP280 atmospheric pressure sensor.
I loaded the ESP Easy Mega firmware.
The feedback information works on but I can not send them back to my PLC.
I use sending by "generic HTTP" but it does not work.
The structure to use to send the information to my PLC is: http: // I "IP of the PLC" /cgi-bin/writeVal.exe?PDP,,r1300,d+200
The value must be entered at the end instead of the value 200 that I put as an example, and must not contain a comma, if I enter this command in "Controller Publish" it works, the value of my controller takes well worth 200 but I can not replace it by the value of my sensors I tried a lot but I can not.
Es can someone give me a hint of the structure to put at the end of my http request to have only the value of my sensor without commas.

Thank you

LudoFr
New user
Posts: 5
Joined: 26 May 2018, 16:09

Re: Generic HTTP to send a value, what exate syntax ?

#2 Post by LudoFr » 26 May 2018, 19:38

pushing a can my tests I begin to understand, the syntax must be cele-ci: http: // I "IP of the controller" /cgi-bin/writeVal.exe?PDP,,r1300,d+% val1% But it does not work because the value is given with "before and my automaton does not accept this quotation mark in front of the value, in the end with this code it gives for example for 26,02 C ° http: // I" IP of the PLC "/cgi-bin/writeVal.exe?PDP,,r1300,d+" 2602
It is the quotation mark between the + and the 2 that creates the error.

Post Reply

Who is online

Users browsing this forum: No registered users and 51 guests