Compare commits
3 Commits
d7b7ebfef9
...
2de43d5fbb
| Author | SHA1 | Date | |
|---|---|---|---|
| 2de43d5fbb | |||
| 434dbc15e9 | |||
| d5b2e529ff |
@@ -85,6 +85,9 @@ app.get(
|
|||||||
'/ocpp/:chargePointId',
|
'/ocpp/:chargePointId',
|
||||||
upgradeWebSocket((c) => {
|
upgradeWebSocket((c) => {
|
||||||
const chargePointId = c.req.param('chargePointId')
|
const chargePointId = c.req.param('chargePointId')
|
||||||
|
if (!chargePointId) {
|
||||||
|
throw new Error('Missing chargePointId parameter')
|
||||||
|
}
|
||||||
const connInfo = getConnInfo(c)
|
const connInfo = getConnInfo(c)
|
||||||
return createOcppHandler(chargePointId, connInfo.remote.address)
|
return createOcppHandler(chargePointId, connInfo.remote.address)
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -1 +1,3 @@
|
|||||||
#define MG_ARCH MG_ARCH_ESP32
|
#define MG_ARCH MG_ARCH_ESP32
|
||||||
|
// Enable TLS support using mbedTLS (built into ESP32)
|
||||||
|
#define MG_TLS MG_TLS_MBED
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// OCPP 1.6-J: MOcppMongooseClient will append "/<CFG_CP_IDENTIFIER>" to this URL.
|
// OCPP 1.6-J: MOcppMongooseClient will append "/<CFG_CP_IDENTIFIER>" to this URL.
|
||||||
// For local dev: ws://<host>:3001/ocpp
|
// For local dev: ws://<host>:3001/ocpp
|
||||||
// For production: ws://csms.helios.bh8.ga:8180/steve/websocket/CentralSystemService
|
// 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 "CQWU_HHB_0001"
|
||||||
#define CFG_CP_IDENTIFIER "ICP_906A28"
|
#define CFG_CP_IDENTIFIER "ICP_906A28"
|
||||||
#define CFG_CB_SERIAL "REDAone_prototype00"
|
#define CFG_CB_SERIAL "REDAone_prototype00"
|
||||||
|
|||||||
Reference in New Issue
Block a user