Skip to content

Commit 1d8da69

Browse files
committed
updates for mbed os 6
1 parent b8687ab commit 1d8da69

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/TARGET_EP_ATLAS/ONBOARD_TELIT_ME310.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include "PinNames.h"
2525
//#include "mbed.h"
2626

27-
#include "UARTSerial.h"
27+
#include "BufferedSerial.h"
2828
#include "ONBOARD_TELIT_ME310.h"
2929
#include "ThisThread.h"
3030
#include "CellularLog.h"
@@ -68,11 +68,11 @@ nsapi_error_t ONBOARD_TELIT_ME310::init()
6868
if (err != NSAPI_ERROR_OK) {
6969
return err;
7070
}
71-
_at->lock();
71+
_at.lock();
7272
#if DEVICE_SERIAL_FC
73-
_at->at_cmd_discard("&K3;&C1;&D0", "");
73+
_at.at_cmd_discard("&K3;&C1;&D0", "");
7474
#else
75-
_at->at_cmd_discard("&K0;&C1;&D0", "");
75+
_at.at_cmd_discard("&K0;&C1;&D0", "");
7676
#endif
7777

7878
// AT#QSS=1
@@ -84,7 +84,7 @@ nsapi_error_t ONBOARD_TELIT_ME310::init()
8484
// <status> values:
8585
// - 0: SIM not inserted
8686
// - 1: SIM inserted
87-
_at->at_cmd_discard("#QSS", "=1");
87+
_at.at_cmd_discard("#QSS", "=1");
8888

8989
// AT#PSNT=1
9090
// Set command enables unsolicited result code for packet service network type (PSNT)
@@ -94,37 +94,37 @@ nsapi_error_t ONBOARD_TELIT_ME310::init()
9494
// - 0: GPRS network
9595
// - 4: LTE network
9696
// - 5: unknown or not registered
97-
_at->at_cmd_discard("#PSNT", "=1");
97+
_at.at_cmd_discard("#PSNT", "=1");
9898

9999
// AT+CMER=2
100100
// Set command enables sending of unsolicited result codes from TA to TE in the case of
101101
// indicator state changes.
102102
// Current setting: buffer +CIEV Unsolicited Result Codes in the TA when TA-TE link is
103103
// reserved (e.g. on-line data mode) and flush them to the TE after
104104
// reservation; otherwise forward them directly to the TE
105-
_at->at_cmd_discard("+CMER", "=2");
105+
_at.at_cmd_discard("+CMER", "=2");
106106

107107
// AT+CMEE=2
108108
// Set command disables the use of result code +CME ERROR: <err> as an indication of an
109109
// error relating to the +Cxxx command issued. When enabled, device related errors cause the +CME
110110
// ERROR: <err> final result code instead of the default ERROR final result code. ERROR is returned
111111
// normally when the error message is related to syntax, invalid parameters or DTE functionality.
112112
// Current setting: enable and use verbose <err> values
113-
_at->at_cmd_discard("+CMEE", "=2");
113+
_at.at_cmd_discard("+CMEE", "=2");
114114

115115
// AT#PORTCFG=0
116116
// Set command allows to connect Service Access Points to the external physical ports giving a great
117117
// flexibility. Examples of Service Access Points: AT Parser Instance #1, #2, #3, etc..
118-
_at->at_cmd_discard("#PORTCFG", "=", "%d", EP_ATLAS_PORT_CONFIGURATION_VARIANT);
118+
_at.at_cmd_discard("#PORTCFG", "=", "%d", EP_ATLAS_PORT_CONFIGURATION_VARIANT);
119119

120120
// AT&W&P
121121
// - AT&W: Execution command stores on profile <n> the complete configuration of the device. If
122122
// parameter is omitted, the command has the same behavior of AT&W0.
123123
// - AT&P: Execution command defines which full profile will be loaded at startup. If parameter
124124
// is omitted, the command has the same behavior as AT&P0
125-
_at->at_cmd_discard("&W&P", "");
125+
_at.at_cmd_discard("&W&P", "");
126126

127-
return _at->unlock_return_error();
127+
return _at.unlock_return_error();
128128
}
129129

130130
void ONBOARD_TELIT_ME310::press_power_button(int time_ms)
@@ -200,7 +200,7 @@ void ONBOARD_TELIT_ME310::onboard_modem_power_down()
200200

201201
CellularDevice *CellularDevice::get_target_default_instance()
202202
{
203-
static UARTSerial serial(P1_2, P1_1, 115200);
203+
static BufferedSerial serial(P1_2, P1_1, 115200);
204204
#if DEVICE_SERIAL_FC
205205
if (P0_11 != NC && P1_8 != NC) {
206206
tr_debug("Modem flow control: RTS %d CTS %d", P0_11, P1_8);

0 commit comments

Comments
 (0)