NB MKR 1500 - modem testing

amglory:
I added this code to reset the Ublox modem in the setup code. After that just upload the code and everything is working again.

// enable the POW_ON pin
pinMode(SARA_PWR_ON, OUTPUT);
digitalWrite(SARA_PWR_ON, HIGH);

// reset the ublox module
pinMode(SARA_RESETN, OUTPUT);
digitalWrite(SARA_RESETN, HIGH);
delay(100);
digitalWrite(SARA_RESETN, LOW);

This worked for me aswell. Only had to be run on the board once though. Could be the sara-chip was in a bad state and needed a reset?