Coder Social home page Coder Social logo

Comments (3)

matth-x avatar matth-x commented on July 22, 2024 1

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

getOcppContext()->initiateRequest(makeRequest(new Ocpp16::CustomOperation(
"RemoteStartTransaction",
[] () {
//create req
auto doc = std::unique_ptr<DynamicJsonDocument>(new DynamicJsonDocument(JSON_OBJECT_SIZE(1)));
auto payload = doc->to<JsonObject>();
payload["idTag"] = "wrong idTag";
return doc;},
[] (JsonObject) { } //ignore conf
)));

However, I'm not sure if that is exactly what you mean.

from microocpp.

Kundanjhakj avatar Kundanjhakj commented on July 22, 2024

Hi, In this code, esp32 uses wifi to connect with websocket. I have to connect with 4G module VVM ESP32 4G LTE A7670 MODULE.

from microocpp.

matth-x avatar matth-x commented on July 22, 2024

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: #238 (comment)

from microocpp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.