-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WiFiEsp: Send Post message from Arduino Mega + ESP-01 issue #219
Comments
Are you sending the "Content-Length" parameter in your POST message with the length of the JSON? |
Yes! This is the code:
There is no error at the Serial Monitor. This is the debug output (Level 4):
I appreciate any help |
I think the problem is that you are making a post to a 443 port. This port is used for HTTPS connections and you are doing a standard HTTP. |
The situation is now a little different after I figured out how to see the full log at level 4. |
add an empty line between headers and the data. it is required by the http protocol. your error is "bad request" as you can see. |
I made some changes:
Now the code is:
And this is the Debug output:
|
it is not able to connect. the site uses TLS 1.2. the AT firmware doesn't support TLS 1.2. there is a 'fake' AT firmware which supports TLS 1.2 and it is better with my WiFiEspAT library |
I just found an article on how to update the ESP-01 firmware... |
I'm sending a Json data.
For a short message it works fine.
But it does not for a longer message.
Is there a data size limit?
I'm sending a POST message to a https server
Thanks and best regards,
Leopoldo
The text was updated successfully, but these errors were encountered: