mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #12110 from AnttiKauppila/cp_recv_len
Moved CP Max recv len into mbed_lib.jsonpull/12132/head
commit
e28daf7c84
|
|
@ -32,7 +32,7 @@ protected:
|
|||
private:
|
||||
void (*_cb)(void *);
|
||||
void *_data;
|
||||
char _recv_buffer[MAX_CP_DATA_RECV_LEN];
|
||||
char _recv_buffer[MBED_CONF_CELLULAR_MAX_CP_DATA_RECV_LEN];
|
||||
size_t _recv_len;
|
||||
// Called on receiving URC: +CRTDCP
|
||||
void urc_cp_recv();
|
||||
|
|
|
|||
|
|
@ -32,6 +32,10 @@
|
|||
"clear-on-connect" : {
|
||||
"help": "Clear modem to a known default state on connect() before SIM pin is entered, null to disable",
|
||||
"value": null
|
||||
},
|
||||
"max-cp-data-recv-len" : {
|
||||
"help": "Max length of the buffer storing data received over control plane",
|
||||
"value": 1358
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,9 +27,10 @@
|
|||
namespace mbed {
|
||||
|
||||
/* Length of the buffer storing data received over control plane */
|
||||
#define MAX_CP_DATA_RECV_LEN 2048
|
||||
#ifndef MBED_CONF_CELLULAR_MAX_CP_DATA_RECV_LEN
|
||||
#define MBED_CONF_CELLULAR_MAX_CP_DATA_RECV_LEN 1358
|
||||
#endif
|
||||
|
||||
// TODO: need to make this l3ip compatible
|
||||
|
||||
/**
|
||||
* @addtogroup cellular
|
||||
|
|
|
|||
Loading…
Reference in New Issue