MicroOcpp icon indicating copy to clipboard operation
MicroOcpp copied to clipboard

After OCPP Websocket connect getting Serial Monitor is printing Get Configuration Capacity

Open FlxMojojojo opened this issue 1 year ago • 1 comments

After WebSocket connect over to OCPP server getting Serial monitor is printing Get Configuration Capacity continuously. During this time the WebSocket connection closes every 30 seconds hence there is no heartbeat. Here is the log, Would you know why MicroOcpp prints this log ? And the reason for disconnection ? Can I print Websocket connection disconnection logs from Mircro OCPP ?

When we look at log

MicrosoftTeams-image (4) MicrosoftTeams-image (3)

It points to this part of the code -

image

@matth-x

FlxMojojojo avatar Jan 18 '24 13:01 FlxMojojojo

The GetConfiguration response is created at the moment when the OCPP lib tries to send it. If the WebSocket is not ready (and sendTXT returns false), then no attempt to send the response is made, but it stays in the queue. In the next loop calls, the OCPP lib retries sending the GetConfiguration response, leading to that flood of debug messages in the console.

Thanks for showing this. Normally all debug messages which could flood the console have debug level VERBOSE. I will change this message correspondingly.

matth-x avatar Jan 22 '24 21:01 matth-x