Fork of ublox-at-cellular-interface to add LARA-R2 support

Dependents:  

Fork of ublox-at-cellular-interface by u-blox

Revision:
18:bfc869299185
Parent:
14:e7dcf3388403
--- a/UbloxATCellularInterface.h	Mon Sep 24 13:44:28 2018 -0500
+++ b/UbloxATCellularInterface.h	Wed Sep 26 11:33:31 2018 -0500
@@ -20,6 +20,8 @@
 #include "CellularBase.h"
 #include "NetworkStack.h"
 
+#define USE_HEX_MODE_USORx   // Workaround for SARA_R4-1266 errata - use hex mode for socket reads
+
 /** UbloxATCellularInterface class.
  *
  *  This uses the cellular-tuned IP stack that
@@ -270,12 +272,21 @@
     /** The maximum number of bytes in a packet that can be written
      * to the AT interface in one go.
      */
+#ifdef USE_HEX_MODE_USORx
+    #define MAX_WRITE_SIZE 512
+#else
     #define MAX_WRITE_SIZE 1024
+#endif
+
 
     /** The maximum number of bytes in a packet that can be read from
      * from the AT interface in one go.
      */
+#ifdef USE_HEX_MODE_USORx
+    #define MAX_READ_SIZE 512
+#else
     #define MAX_READ_SIZE 1024
+#endif
 
     /** Management structure for sockets.
      */