Merge pull request #12110 from AnttiKauppila/cp_recv_len

Moved CP Max recv len into mbed_lib.json
pull/12132/head
Anna Bridge 2019-12-17 16:28:37 +00:00 committed by GitHub
commit e28daf7c84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 3 deletions

View File

@ -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();

View File

@ -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
}
}
}

View File

@ -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