Skip to content

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 Answers
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.

AWS
EXPERT
answered 3 years ago
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.

answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.