I provisioned a HTTP server on AWS EC2 and configured the XDK to send sensor readings to this server. The first packets are sent sucessfully, but after that no more packets are actually being sent, because onHTTPRequestSentCallback gives me errors. When running the same server locally, or configuring the XDK to send to httpbin.org, a testing server, everything works fine. What could be the issue? I'm attaching the code below.
Hello unbnerds
If you are able to sent data successfully using local server or test server such as "httpbin.org". Then the problem could not be in server end. Could you please check whether you have provisioned a HTTP server on AWS EC2 properly or not?
Hello unbnerds,
as Mahalingam put it, please try to test the server instance using tools like Postman, wget or other tool of your choice that is able to test HTTP APIs to test if the server instance is reachable and reacts as expected.
Usually the XDK is tested against http APIs provided by Python, the Apache server and Node.js
Best regards,
Francisco Llobet