mirror of https://github.com/ARMmbed/mbed-os.git
Disable APN lookup by default
parent
90d3dc1f13
commit
30ea858f51
|
|
@ -36,12 +36,10 @@
|
|||
#include "nsapi_ppp.h"
|
||||
#endif
|
||||
|
||||
#define USE_APN_LOOKUP (MBED_CONF_CELLULAR_USE_APN_LOOKUP || (NSAPI_PPP_AVAILABLE && MBED_CONF_PPP_CELL_IFACE_APN_LOOKUP))
|
||||
|
||||
#if USE_APN_LOOKUP
|
||||
#if MBED_CONF_CELLULAR_USE_APN_LOOKUP
|
||||
#include "CellularInformation.h"
|
||||
#include "APN_db.h"
|
||||
#endif //USE_APN_LOOKUP
|
||||
#endif //MBED_CONF_CELLULAR_USE_APN_LOOKUP
|
||||
|
||||
using namespace mbed_cellular_util;
|
||||
using namespace mbed;
|
||||
|
|
@ -917,7 +915,7 @@ void AT_CellularContext::cellular_callback(nsapi_event_t ev, intptr_t ptr)
|
|||
_semaphore.release();
|
||||
}
|
||||
}
|
||||
#if USE_APN_LOOKUP
|
||||
#if MBED_CONF_CELLULAR_USE_APN_LOOKUP
|
||||
if (st == CellularSIMStatusChanged && data->status_data == CellularDevice::SimStateReady &&
|
||||
_cb_data.error == NSAPI_ERROR_OK) {
|
||||
if (!_apn) {
|
||||
|
|
@ -946,7 +944,7 @@ void AT_CellularContext::cellular_callback(nsapi_event_t ev, intptr_t ptr)
|
|||
_device->close_information();
|
||||
}
|
||||
}
|
||||
#endif // USE_APN_LOOKUP
|
||||
#endif // MBED_CONF_CELLULAR_USE_APN_LOOKUP
|
||||
|
||||
if (!_nw && st == CellularDeviceReady && _cb_data.error == NSAPI_ERROR_OK) {
|
||||
_nw = _device->open_network(_fh);
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
"config": {
|
||||
"use-apn-lookup": {
|
||||
"help": "Use APN database lookup",
|
||||
"value": true
|
||||
"value": false
|
||||
},
|
||||
"use-sms": {
|
||||
"help": "Enable or disable SMS functionality in Cellular stack.",
|
||||
|
|
|
|||
|
|
@ -1,9 +0,0 @@
|
|||
{
|
||||
"name": "ppp-cell-iface",
|
||||
"config": {
|
||||
"baud-rate": 115200,
|
||||
"apn-lookup": true,
|
||||
"at-parser-buffer-size": 256,
|
||||
"at-parser-timeout": 8000
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue