Skip to content

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

@TheRaai

Description

@TheRaai

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions