Chat freely about anything...

User avatar
By rant
#8442 Ok i have this :

AT+CIPSTART=4,"TCP","api.parse.com",443

I get : OK Linked

AT+CIPSEND=4,228

I get : >

than the request :

GET /1/classes/DATA/TXcgRDCCRR HTTP/1.0
Host: api.parse.com
X-Parse-Application-Id: y4eI4XmKNT5D6MVtC565xkEjBAkggTlTMt1erNKv
X-Parse-REST-API-Key: KCf4NA2tvhBnIr33Vt8287m4AuhMVqvacsVeB4O0
Content-Type: application/json


Now i dont get the error, but i get after a while: OK Unlink

But no Json respond.
User avatar
By alonewolfx2
#8444 i am using nodemcu for thingspeak. its very easy for simple request. you can find ds18b20 to thingspeak example with deepsleep option.
User avatar
By lethe
#8480
rant wrote:AT+CIPSTART=4,"TCP","api.parse.com",443
<snip>
Now i dont get the error, but i get after a while: OK Unlink

But no Json respond.

As Sprite_tm already mentioned: you can't just connect to port 443 instead of port 80 and send your request. This will still send your data unencrypted, so the server will either ignore your request or just close the connection.
In order to connect to a HTTPS server, you need to actually negotiate an encrypted channel on top of the TCP connection, which the AT firmware you are using does not support.
So you are basically left with 3 choices:
- do the encryption on your host microcontroller and stick with the current AT firmware
- hack the AT firmware to support SSL/TLS connections. The ESP8266 SDK already has all the libs necessary for that, so it should be fairly simple (maybe someone has already done a SSL/TLS enabled AT firmware)
- implement your network connection completely on the ESP (and maybe ditch the external microcontroller), either in C or Lua