Implementation of the CellularInterface for u-blox C030 boards with N2xx modems. Note: requires the N211 module firmware to be at least 06.57 A01.02.

Dependents:   example-ublox-cellular-interface HelloMQTT example-ublox-cellular-interface_r410M example-ublox-mbed-client ... more

Revision:
8:0162c103346a
Parent:
7:69e676f4af84
Child:
10:08c5a69437ac
--- a/UbloxATCellularInterfaceN2xx.cpp	Thu Sep 14 10:29:22 2017 +0100
+++ b/UbloxATCellularInterfaceN2xx.cpp	Thu Sep 14 11:00:41 2017 +0100
@@ -452,7 +452,7 @@
             if (nsapi_error_size >= 0) {
                 memcpy(buf, tmpBuf, nsapi_error_size);
 
-                if (read_blk != (uint) nsapi_error_size)
+                if (read_blk != (uint32_t) nsapi_error_size)
                     tr_error("Requested size is not the same as the returned size!");
                 
                 socket->pending -= nsapi_error_size;                
@@ -460,7 +460,7 @@
                 buf += nsapi_error_size;
                 size -= nsapi_error_size;
                 
-                if (((uint)nsapi_error_size < read_blk) || (nsapi_error_size == MAX_READ_SIZE_N2XX))
+                if (((uint32_t) nsapi_error_size < read_blk) || (nsapi_error_size == MAX_READ_SIZE_N2XX))
                     size = 0;     // If we've received less than we asked for, or
                                   // the max size, then a whole UDP packet has arrived and
                                   // this means DONE.