Cellular

getActiveSim()

Get the current active SIM (internal or external):

  • INTERNAL_SIM = 1
  • EXTERNAL_SIM = 2
void setup() {
    Serial.begin();
}

void loop() {
    SimType simType = Cellular.getActiveSim();
    Serial.printlnf("simType=%d", simType);
    delay(5000);
}