Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
I have connected a nodeMCU to my laptop and create a thing on the platform then i tried to update the reading from arduino IDE to platform by http request
but the value doesn't updated and i don't know why please help
the attached file has the code which i tried with it to update the value
Solved! Go to Solution.
Looking at the code you previously posted the next problem I see is that your server is using https and your code is using HTTPClient - not https. I am not sure if the ESP8266 can make an HTTPS request, what library are you using?
The SSID and password for the WiFi access point your NodeMCU should use are blank, you will need to enter valid WiFi credentials so the device can connect.
This guide walks you through using an ESP8266 device:
https://developer.thingworx.com/resources/guides/connect-adafruit-feather
thanks for your help but I did it and the value didn't updated
Looking at the code you previously posted the next problem I see is that your server is using https and your code is using HTTPClient - not https. I am not sure if the ESP8266 can make an HTTPS request, what library are you using?
the library is ESP8266HTTPClient and that's right the prolem was in using https
thanks a lot for your help