matth-x / MicroOcpp

OCPP 1.6 / 2.0.1 client for microcontrollers
MIT License
344 stars 149 forks source link

Plugged connector check #333

Open Wert137-dsp opened 4 months ago

Wert137-dsp commented 4 months ago

Hello @matth-x

I want to check when the charger is plugged into the vehicle, there is the setConnectorPluggedInput function, but I didn't find anything within the lib to retrieve this information, I wrote a code to resolve this issue but I would like to know if there is already a solution.

matth-x commented 4 months ago

Hi @Wert137-dsp, there is no method to read back those values. When I work on firmware and need the connector status somewhere else, I usually store the status in a separate variable which I can fully access before reporting it to MicroOcpp.

Wert137-dsp commented 3 months ago

Hi @matth-x , do you have any example code for implementing this part that you can provide?