From d20487e94a58e1c057670554eac0e9a1c743b7ae Mon Sep 17 00:00:00 2001 From: SPRESENSE <41312067+SPRESENSE@users.noreply.github.com> Date: Thu, 28 Sep 2023 17:04:08 +0900 Subject: [PATCH] LTE: Remove the PIN feature Remove the PIN feature, because the SIM may accidentally become unusable. --- .../1.0.0/libraries/LTE/src/LTECore.cpp | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/Arduino15/packages/SPRESENSE/hardware/spresense/1.0.0/libraries/LTE/src/LTECore.cpp b/Arduino15/packages/SPRESENSE/hardware/spresense/1.0.0/libraries/LTE/src/LTECore.cpp index 504edfe5a..a45863469 100755 --- a/Arduino15/packages/SPRESENSE/hardware/spresense/1.0.0/libraries/LTE/src/LTECore.cpp +++ b/Arduino15/packages/SPRESENSE/hardware/spresense/1.0.0/libraries/LTE/src/LTECore.cpp @@ -266,31 +266,6 @@ LTEModemStatus LTECore::startSearchNetwork(char* pinCode, bool synchronous) bool imsCapability = false; LTEModemStatus status = LTE_SEARCHING; - if (pinCode && (0 != strnlen(pinCode, LTE_NET_PINCODE_MAXLEN - 1))) { - - uint8_t simStatus = 0; - uint8_t attemptsleft = 0; - - result = lte_enter_pin_sync(pinCode, NULL, &simStatus, &attemptsleft); - if (result < 0) { - LTEERR("lte_enter_pin_sync result error : %d\n", result); - LTEERR("simStatus : %d\n", simStatus); - LTEERR("attemptsleft : %d\n", attemptsleft); - if (-EPROTO == result) { - printErrorInfo(); - } - goto errout; - } - - LTEDBG("Successful unlock PIN code: %s\n", pinCode); - - /* Copy to privte member */ - - memset(_modemPinCode, 0, LTE_NET_PINCODE_MAXLEN); - strncpy(_modemPinCode, pinCode, strnlen(pinCode, LTE_NET_PINCODE_MAXLEN - 1)); - - } - result = lte_radio_on_sync(); if (result < 0) { LTEERR("lte_radio_on_sync result error : %d\n", result);