Open Kundanjhakj opened 2 weeks ago
Hi @Kundanjhakj,
There is no systematic approach of making MicroOcpp send all operations one by another. For example, MicroOcpp will send the FirmwareStatusNotification only as part of a firmware update process, but it has no API for sending it manually.
Still you can rebuild each operation using the CustomOperation class like this
However, I'm not sure if that is exactly what you mean.
Hi, In this code, esp32 uses wifi to connect with websocket. I have to connect with 4G module VVM ESP32 4G LTE A7670 MODULE.
You can replace the built-in WebSocket client by your own WebSocket client which you have full control of. Then you can instruct the WebSocket client to route all traffic over 4G. The custom WebSocket client needs to subclass the MicroOcpp Connection
interface and implement all its functions. To make MicroOcpp use the custom WS client, you need to pass it to mocpp_initialize
like this: https://github.com/OpenEVSE/openevse_esp32_firmware/blob/ff671ff90cfbc8ec794bd4e7481301758b867934/src/ocpp.cpp#L243-L255
There's also a user who has used the TinyGSM project with MicroOcpp. See this issue for a demonstration: https://github.com/matth-x/MicroOcpp/issues/238#issuecomment-1877293070
Hi Developers, I am working with the ESP32-C3 module and need to test all operations such as BootNotification, Heartbeat, StatusNotification, etc., with CMS. I have built MicroOCPP code on the Espressif IDE. Additionally, I have successfully connected it with CMS. Could anyone please guide me on how to send each operation one by one for testing purposes?
Thank you.