How to Use OCPP Server in AWS lambda using webSockets API and Raspberry Pi acts as OCPP client ?

0

I am implementing OCPP Protocol. i am using Raspberry Pi as a client and i want to run Server in AWS Lambda How to implement it in AWS?

2 個答案
1

If I remember correctly, the URL that you need to use for OCPP has a specific structure which doesn't work with the way API WebSockets URLs look like. One way to overcome this is by using a CloudFront distribution in front of you API, which will rewrite the URL using CloudFront functions, before forwarding to the API in the backend.

profile pictureAWS
專家
Uri
已回答 1 年前
0

You could use the AWS API Gateway service as a proxy to your Lambda function. This would allow you to call the Lambda function from your Raspberry Pi. You would need to create an API method in the API Gateway to handle the OCPP requests, then map it to the specific Lambda function that you have created to handle the OCPP protocol.

profile picture
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南