NetworkSocketAPI / C027Interface

Dependencies:   C027_Support

Dependents:   HelloC027Interface U_Blox_DeviceConnector U_Blox_DeviceConnector U-Blox_Client

Fork of LWIPInterface by NetworkSocketAPI

Files at this revision

API Documentation at this revision

Comitter:
sarahmarshy
Date:
Thu Mar 23 21:59:18 2017 +0000
Parent:
17:3f1e33e638a4
Child:
19:fed715eb9c83
Commit message:
Fixed bug in setting APN.

Changed in this revision

C027Interface.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/C027Interface.cpp	Thu Feb 02 21:16:38 2017 +0000
+++ b/C027Interface.cpp	Thu Mar 23 21:59:18 2017 +0000
@@ -28,7 +28,7 @@
 nsapi_error_t C027Interface::set_credentials(const char *apn, const char *username, const char *password)
 {
     memset(_apn, 0, sizeof(_apn));
-    strncpy(_apn, apn, sizeof(apn));
+    strncpy(_apn, apn, sizeof(_apn));
 
     memset(_username, 0, sizeof(_username));
     strncpy(_username, username, sizeof(_username));