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

"while (!sim808.getGPS())" Stops Arduino if no GPS signal #20

Open
inghaj opened this issue Feb 9, 2019 · 1 comment
Open

"while (!sim808.getGPS())" Stops Arduino if no GPS signal #20

inghaj opened this issue Feb 9, 2019 · 1 comment

Comments

@inghaj
Copy link

inghaj commented Feb 9, 2019

Hi
I'd really appreciate some help, as to me this is kind of a bug (I think!).. I have some code which works fine & utilises the library.. However, the code contains :

while (!sim808.getGPS()) { }

If the SIM808 has lost GPS signal, then my code hangs forever waiting for the GPS signal to come back...

Is there any way of working around this please? (i.e. if no GPS signal, just return 0s for everything & continue..don't wait)

Thanks for any help !
James

@axieyangb
Copy link

Same issue encountered. Any ideas about how to solve it ?

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

No branches or pull requests

2 participants