lupyuen / send_altitude_cocoos

IoT program for Arduino Uno / STM32 Blue Pill (libopencm3) that reads BME280 temperature + humidity + altitude sensors, via I2C or SPI with DMA and multitasking. Sends sensor data to Sigfox via Wisol Sigfox module on UART. Runs on cocoOS task scheduling library http://www.cocoos.net
MIT License
24 stars 6 forks source link

Creating API Gateway on AWS for Sigfox communication #7

Closed jamesle-0812 closed 5 years ago

jamesle-0812 commented 5 years ago

Hi there, Can you give me a tutorial how to create a API Gateway on AWS please? I'm doing a project related to bi-directional communication with Sigfox & AWS. Thanks in advance for your time & support!

lupyuen commented 5 years ago

Hi: Sorry I have closed my AWS accounts so I can't show you the steps. But I recall that when you create an AWS Lambda function, you can select an API Gateway template, and it will configure the API Gateway settings for you.

Could you try that?

lupyuen commented 5 years ago

You can also check this tutorial: https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-create-api-as-simple-proxy-for-lambda.html

jamesle-0812 commented 5 years ago

Hi, thanks for your reply. I've created a API Gateway in AWS Lambda function. I've done on configurations as your advice in Sigfox callback. However, when transferring information to data the gateway, the Sigfox callback shows an error of "502 Bad Gateway". Please have a look in the screenshoot https://imgur.com/Akqh8p5 Any suggestion? Thanks in advance!

lupyuen commented 5 years ago

Can you check the Sigfox callback screen: https://cdn-images-1.medium.com/max/480/1*1wzDWaToL4IXB3Ff-Js4pA.png

And check the box "Send SNI"? I think this option may be needed for AWS.

If that doesn't work, can you send me the screenshots of your Sigfox callback, as well as the AWS Lambda and API Gateway config? You can reach me at luppy@appkaki.com.

lupyuen commented 5 years ago

Solved by testing with a simpler Sigfox callback: https://gist.github.com/lupyuen/cdc0dd93672da5b6c44a3ae5003a32c0#file-sigfox-downlink-js