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

Syntax command get by GSMSimTime #40

Open
rubinlicht opened this issue Aug 24, 2021 · 2 comments
Open

Syntax command get by GSMSimTime #40

rubinlicht opened this issue Aug 24, 2021 · 2 comments

Comments

@rubinlicht
Copy link

When i write
DateTime.get(int *day, int *month, int *year, int *hour, int *minute, int *second);
Become the Error
expected'(' for function-style cast ot type construction

@H3wastooshort
Copy link

H3wastooshort commented Aug 29, 2021

You have to make an existing variable then let the function fill them out:

int day;
int month;
int year;
int hour;
int minute;
int second;
gsmsim.get(day, month, year, hour, minute, second);
Serial.println(day); //a test

@H3wastooshort
Copy link

but i think this function is broken and hangs your code

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