SIM 800 GPRS modem for HTTP GET and POST to AWS IoT and AWS API gateway

前端 未结 3 1743
无人共我
无人共我 2021-01-16 04:53

I was trying to POST and GET some JSON data to and from the AWS cloud respectively using the SIM 800 module. I\'m initially trying it out directly from my PC over a terminal

3条回答
  •  天命终不由人
    2021-01-16 05:24

    The way to do it is method 2 i.e. API Gateway. I don't think its possible to do it through method 1 i.e. AWS IoT.

    @mich and @patrick-fischer are correct with the reason and I too was suspecting the same but didn't know the solution. I and my team contacted AWS support and they told us the solution.

    Apparently, you do it through AWS CloudFront. You have to go and create a CloudFront distribution with the link of your API Gateway (in my case https://XXXX.execute-api.us-west-2.amazonaws.com/XXX/calc/4/2/+). While creating this distribution you can mention whether to accept incoming HTTP, HTTPS or both.

    In one of the sections (don't remember the name of the section), it allows you to mention which TLS/SSL version to allow incoming requests from. In the case of SIM 800, TLSv1.0 is the highest supported version which has to be set in the CloudFront distribution.

    What CloudFront does is allow traffic from sources with certain parameters like the version of HTTP, TLS version .etc.

提交回复
热议问题