Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renew Elmduino-ELM327 Connection setup in main Loop #261

Open
MFAISALREHMAN opened this issue Sep 27, 2024 · 1 comment
Open

Renew Elmduino-ELM327 Connection setup in main Loop #261

MFAISALREHMAN opened this issue Sep 27, 2024 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@MFAISALREHMAN
Copy link

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 MFAISALREHMAN added the question Further information is requested label Sep 27, 2024
@miguelos6
Copy link

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 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants