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

"error: 'SerialSARA' was not declared in this scope" #111

Open
TheRaai opened this issue Apr 14, 2023 · 0 comments
Open

"error: 'SerialSARA' was not declared in this scope" #111

TheRaai opened this issue Apr 14, 2023 · 0 comments
Labels
type: imperfection Perceived defect in any part of project

Comments

@TheRaai
Copy link

TheRaai commented Apr 14, 2023

When I try to use the library, in the "NBWebClient" example, I get the same error from the Modem.cpp file.

..\libraries\MKRNB\src\Modem.cpp:383:18: error: 'SerialSARA' was not declared in this scope
 ModemClass MODEM(SerialSARA, 115200, SARA_RESETN, SARA_PWR_ON, SARA_VINT);
                  ^~~~~~~~~~
..\libraries\MKRNB\src\Modem.cpp:383:18: note: suggested alternative: 'SerialUSB'
 ModemClass MODEM(SerialSARA, 115200, SARA_RESETN, SARA_PWR_ON, SARA_VINT);
                  ^~~~~~~~~~
                  SerialUSB
..\libraries\MKRNB\src\Modem.cpp:383:38: error: 'SARA_RESETN' was not declared in this scope
 ModemClass MODEM(SerialSARA, 115200, SARA_RESETN, SARA_PWR_ON, SARA_VINT);
                                      ^~~~~~~~~~~
..\MKRNB\src\Modem.cpp:383:38: note: suggested alternative: 'GSM_RESETN'
 ModemClass MODEM(SerialSARA, 115200, SARA_RESETN, SARA_PWR_ON, SARA_VINT);
                                      ^~~~~~~~~~~
                                      GSM_RESETN
..\libraries\MKRNB\src\Modem.cpp:383:51: error: 'SARA_PWR_ON' was not declared in this scope
 ModemClass MODEM(SerialSARA, 115200, SARA_RESETN, SARA_PWR_ON, SARA_VINT);
                                                   ^~~~~~~~~~~
..\libraries\MKRNB\src\Modem.cpp:383:51: note: suggested alternative: 'SARA_VINT_ON'
 ModemClass MODEM(SerialSARA, 115200, SARA_RESETN, SARA_PWR_ON, SARA_VINT);
                                                   ^~~~~~~~~~~
                                                   SARA_VINT_ON

exit status 1

Compilation error: exit status 1

This is using the NBWebClient.ino example file, no changes made, and MKRNB version 1.5.1.

@per1234 per1234 added the type: imperfection Perceived defect in any part of project label Apr 14, 2023
@per1234 per1234 changed the title Error when using the library "error: 'SerialSARA' was not declared in this scope" Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants