mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #15273 from Tobi15/main
add the possibility to customize the delimiter of the ATHandler in AT…pull/15295/head
commit
d994efc2b8
|
@ -67,7 +67,7 @@ public:
|
|||
};
|
||||
|
||||
public:
|
||||
AT_CellularDevice(FileHandle *fh);
|
||||
AT_CellularDevice(FileHandle *fh, char *delim = "\r");
|
||||
virtual ~AT_CellularDevice();
|
||||
|
||||
virtual nsapi_error_t clear();
|
||||
|
|
|
@ -39,9 +39,9 @@ using namespace std::chrono_literals;
|
|||
#define DEFAULT_AT_TIMEOUT 1s // at default timeout
|
||||
const int MAX_SIM_RESPONSE_LENGTH = 16;
|
||||
|
||||
AT_CellularDevice::AT_CellularDevice(FileHandle *fh) :
|
||||
AT_CellularDevice::AT_CellularDevice(FileHandle *fh, char *delim):
|
||||
CellularDevice(),
|
||||
_at(fh, _queue, DEFAULT_AT_TIMEOUT, "\r"),
|
||||
_at(fh, _queue, DEFAULT_AT_TIMEOUT, delim),
|
||||
#if MBED_CONF_CELLULAR_USE_SMS
|
||||
_sms(0),
|
||||
#endif // MBED_CONF_CELLULAR_USE_SMS
|
||||
|
|
|
@ -33,9 +33,9 @@ bool AT_CellularDevice_stub::pin_needed = false;
|
|||
bool AT_CellularDevice_stub::supported_bool = false;
|
||||
int AT_CellularDevice_stub::max_sock_value = 1;
|
||||
|
||||
AT_CellularDevice::AT_CellularDevice(FileHandle *fh) :
|
||||
AT_CellularDevice::AT_CellularDevice(FileHandle *fh, char *delim) :
|
||||
CellularDevice(),
|
||||
_at(fh, _queue, get_property(AT_CellularDevice::PROPERTY_AT_SEND_DELAY), "\r"),
|
||||
_at(fh, _queue, get_property(AT_CellularDevice::PROPERTY_AT_SEND_DELAY), delim),
|
||||
#if MBED_CONF_CELLULAR_USE_SMS
|
||||
_sms(0),
|
||||
#endif // MBED_CONF_CELLULAR_USE_SMS
|
||||
|
|
Loading…
Reference in New Issue