Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FXOS8700CQ MODSERIAL mbed
Fork of Avnet_ATT_Cellular_IOT by
Diff: main.cpp
- Revision:
- 33:fa964b8b3b19
- Parent:
- 32:1e052a3e73fe
- Child:
- 35:c9c2eb8fb0a8
--- a/main.cpp Fri Jul 22 16:22:17 2016 +0000
+++ b/main.cpp Fri Jul 22 17:12:26 2016 +0000
@@ -38,6 +38,8 @@
#define MDM_DBG_AT_CMDS (1 << 0)
int mdm_dbgmask = MDM_DBG_OFF;
+#define WNC_WAIT_FOR_AT_CMD_MS 40
+
Serial pc(USBTX, USBRX);
SerialBuffered mdm(PTD3, PTD2, 128);
DigitalOut led_green(LED_GREEN);
@@ -94,7 +96,7 @@
int mdm_sendAtCmd(const char *cmd, const char **rsp_list, int timeout_ms) {
// Per WNC wait:
- wait_ms(20);
+ wait_ms(WNC_WAIT_FOR_AT_CMD_MS);
if (cmd && strlen(cmd) > 0) {
if (mdm_dbgmask & MDM_DBG_AT_CMDS) {
@@ -191,7 +193,7 @@
size_t n = strlen(cmd);
// Per WNC wait:
- wait_ms(20);
+ wait_ms(WNC_WAIT_FOR_AT_CMD_MS);
if (cmd && n > 0) {
if (mdm_dbgmask & MDM_DBG_AT_CMDS) {
