Komut
shutdown
Açıklama
Modemi kapatarak SIM kartta tanımlanan NB şebekesinden bağlantı kesilir.
Sözdizimi
nb .shutdown ()
Parametreler
Yok
İadeler
Başarılı olursa doğru
Misal
#include <MKRNB.h>
#define PINNUMBER ""
NB nb; // include a 'true' parameter for debug enabled
void setup()
{
// initialize serial communications
Serial.begin(9600);
// connection state
boolean notConnected = true;
// StartNB Module
// If your SIM has PIN, pass it as a parameter of begin() in quotes
while(notConnected)
{
if(nb.begin(PINNUMBER)==NB_READY)
notConnected = false;
else
{
Serial.println("Not connected");
delay(1000);
}
}
Serial.println("NB initialized");
nb.shutdown();
Serial.println("NB terminated");
}
void loop()
{
}
#define PINNUMBER ""
NB nb; // include a 'true' parameter for debug enabled
void setup()
{
// initialize serial communications
Serial.begin(9600);
// connection state
boolean notConnected = true;
// StartNB Module
// If your SIM has PIN, pass it as a parameter of begin() in quotes
while(notConnected)
{
if(nb.begin(PINNUMBER)==NB_READY)
notConnected = false;
else
{
Serial.println("Not connected");
delay(1000);
}
}
Serial.println("NB initialized");
nb.shutdown();
Serial.println("NB terminated");
}
void loop()
{
}