Compare commits

3 Commits

3 changed files with 6 additions and 1 deletions

View File

@@ -85,6 +85,9 @@ app.get(
'/ocpp/:chargePointId',
upgradeWebSocket((c) => {
const chargePointId = c.req.param('chargePointId')
if (!chargePointId) {
throw new Error('Missing chargePointId parameter')
}
const connInfo = getConnInfo(c)
return createOcppHandler(chargePointId, connInfo.remote.address)
}),

View File

@@ -1 +1,3 @@
#define MG_ARCH MG_ARCH_ESP32
// Enable TLS support using mbedTLS (built into ESP32)
#define MG_TLS MG_TLS_MBED

View File

@@ -2,7 +2,7 @@
// OCPP 1.6-J: MOcppMongooseClient will append "/<CFG_CP_IDENTIFIER>" to this URL.
// For local dev: ws://<host>:3001/ocpp
// For production: ws://csms.helios.bh8.ga:8180/steve/websocket/CentralSystemService
#define CFG_OCPP_BACKEND "wss://csms.uniiem.com/ocpp"
#define CFG_OCPP_BACKEND "wss://csms-server.uniiem.com/ocpp"
// #define CFG_CP_IDENTIFIER "CQWU_HHB_0001"
#define CFG_CP_IDENTIFIER "ICP_906A28"
#define CFG_CB_SERIAL "REDAone_prototype00"