ELMduino icon indicating copy to clipboard operation
ELMduino copied to clipboard

Renew Elmduino-ELM327 Connection setup in main Loop

Open MFAISALREHMAN opened this issue 1 year ago • 1 comments

Hello The Elmduino-ELM327 connect function is called in Setup function. However i want it in Loop function.

During operation if connection between Arduino and Elm327 is lost e.g if i plug out elm327 and then reconnect, then data cannot be read until new connection is established between Arduino and elm327. Can someone suggest the code snippet for that.

Thanks

MFAISALREHMAN avatar Sep 27 '24 11:09 MFAISALREHMAN

I created testConnectivity() function at the end of loop () it simply does the same as in setup () but has condition if (!myELM327.connected) { connect steps from setup() here }

miguelos6 avatar Oct 16 '24 11:10 miguelos6