Implementation of the CellularInterface for u-blox C030 baords with N2xx modems.

Dependents:   example-ublox-cellular-interface example-ublox-cellular-interface_2 HelloMQTT example-ublox-cellular-interface ... more

Files at this revision

API Documentation at this revision

Comitter:
rob.meades@u-blox.com
Date:
Thu Sep 14 11:00:41 2017 +0100
Parent:
7:69e676f4af84
Commit message:
uint becomes uint32_t (ARM tools do not have uint).

Changed in this revision

UbloxATCellularInterfaceN2xx.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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.