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:
|
private:
|
||||||
void (*_cb)(void *);
|
void (*_cb)(void *);
|
||||||
void *_data;
|
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;
|
size_t _recv_len;
|
||||||
// Called on receiving URC: +CRTDCP
|
// Called on receiving URC: +CRTDCP
|
||||||
void urc_cp_recv();
|
void urc_cp_recv();
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,10 @@
|
||||||
"clear-on-connect" : {
|
"clear-on-connect" : {
|
||||||
"help": "Clear modem to a known default state on connect() before SIM pin is entered, null to disable",
|
"help": "Clear modem to a known default state on connect() before SIM pin is entered, null to disable",
|
||||||
"value": null
|
"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 {
|
namespace mbed {
|
||||||
|
|
||||||
/* Length of the buffer storing data received over control plane */
|
/* 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
|
* @addtogroup cellular
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue