Updated ref

Dependencies:   FXOS8700Q-driver MODSERIAL

Fork of AAT_LWM2M_K64F by Vinay Shrivastav

Revision:
52:74019970a2bf
Parent:
48:bef96b79dec0
--- a/simpleclient.h	Wed Jan 04 22:15:09 2017 +0000
+++ b/simpleclient.h	Fri Jan 20 12:34:35 2017 +0000
@@ -60,7 +60,7 @@
 	// WiFi or Ethernet supports both - TCP by default to avoid
 	// NAT problems, but UDP will also work - IF you configure
 	// your network right.
-    M2MInterface::BindingMode SOCKET_MODE = M2MInterface::TCP;
+    M2MInterface::BindingMode SOCKET_MODE = M2MInterface::UDP; //TCP;
 #endif
 
 
@@ -173,7 +173,7 @@
         if(security) {
             // Add ResourceID's and values to the security ObjectID/ObjectInstance
             security->set_resource_value(M2MSecurity::M2MServerUri, _server_address);
-            security->set_resource_value(M2MSecurity::SecurityMode, M2MSecurity::Certificate);
+            security->set_resource_value(M2MSecurity::SecurityMode, M2MSecurity::NoSecurity); //Certificate);
             security->set_resource_value(M2MSecurity::ServerPublicKey, SERVER_CERT, sizeof(SERVER_CERT));
             security->set_resource_value(M2MSecurity::PublicKey, CERT, sizeof(CERT));
             security->set_resource_value(M2MSecurity::Secretkey, KEY, sizeof(KEY));