Connection: close [{ "ResponseValue" : "1" }]

5 years 11 months ago #2503 by whogarden
Hello,
I've just discovered and very interrested in iot-playground cloud that seems to be much better than Blynk.,
But I can't use it : .
I use an ESP8266-12E and the program I use is "ESP8266 WiFi door/window sensor (EasyIoT Cloud REST API)".
When I start the ESP module after upload with arduino IDE I can see on serial :
AP......WiFi connectedPOST data to URL: /RestApi/SetParameter/(here the InstanceId/ParameterId)/1HTTP/1.1 200 OK
Server: EasyIoT Cloud server/1.0
Content-Type: application/json
Date: Wed, 11 Nov 2015 14:34:26 GMT
Content-Length: 27
Connection: close

[{ "ResponseValue" : "1" }]
But the garage door is always seen "Open"
I am very newbe, so, can someone explain me what's wrong?
Something about "Content-Length: 27" ?
Thank you

Please Log in or Create an account to join the conversation.

5 years 11 months ago #2504 by NightOne
There is a good change that you have the pin number wrong..... the program will still post an open value to the cloud server.

Please Log in or Create an account to join the conversation.

5 years 11 months ago #2513 by whogarden
Thank you for this quick answer.
I did exactly what was described in the tuto.
I kept the pin number of the tuto (#define INPUT_PIN 5)
Is there something else to do in "EasyIoT Cloud" and where?
Thank you.

Please Log in or Create an account to join the conversation.

5 years 11 months ago #2521 by EasyIoT
[{ "ResponseValue" : "1" }] mean that you successfully updated parameter. Did you check value of parameter under parameter configuration? Value should be 0 or 1 dependent on door/windows state.

Please Log in or Create an account to join the conversation.

5 years 11 months ago #2525 by whogarden
Thank you,
I found the response : I use the pin out found in the page " daflabs.com/esp8266.html ", but the GPIO4 and GPIO5 are inverted compared to my ESP12. For me the GPIO5 is close to the RXD.
With the swith on the correct GPIO, it's working.
Sorry for that time lost for you.
Now, I'll try to go further... use of many esp...
Thank you very much.

Please Log in or Create an account to join the conversation.

5 years 11 months ago #2526 by NightOne
Glad you figured it out..... I have seen alot of posts on ESP forums where there is no standard on the cheap Chinese ESPs and they all have different GPIO locations...

Just a heads up, if you want to load NodeMCU and program with LUA on your esp....check to see the pin mappings on the version of NodeMCU cause they are always changing them or "remapping" them.

Please Log in or Create an account to join the conversation.

Time to create page: 0.238 seconds

Forum latest

  • No posts to display.