use TCP to connect to mbed connector

Fork of mbedConnectorInterfaceWithDM by Doug Anson

Revision:
51:91fc5f5880fe
Parent:
33:1d0b855df5a5
--- a/source/Location.cpp	Fri Jun 24 02:07:53 2016 +0000
+++ b/source/Location.cpp	Fri Jun 24 03:47:10 2016 +0000
@@ -26,14 +26,15 @@
 namespace Connector {
 
 // Constructor
-Location::Location(const RawSerial *pc) {
-    this->m_pc = (RawSerial *)pc;
-    this->initBuffers();
+Location::Location() {
+    memset(this->m_latitude,0,LOCATION_COORDINATE_LENGTH+1);
+    memset(this->m_longitude,0,LOCATION_COORDINATE_LENGTH+1);
+    memset(this->m_msl_altitude_m,0,LOCATION_MSL_ALT_LENGTH+1);
+    memset(this->m_speed,0,LOCATION_SPEED_LENGTH+1);
 }
 
 // Copy Constructor
 Location::Location(const Location &location) {
-    this->m_pc = location.m_pc;
     memcpy(this->m_latitude,location.m_latitude,LOCATION_COORDINATE_LENGTH+1);
     memcpy(this->m_longitude,location.m_longitude,LOCATION_COORDINATE_LENGTH+1);
     memcpy(this->m_msl_altitude_m,location.m_msl_altitude_m,LOCATION_MSL_ALT_LENGTH+1);
@@ -44,14 +45,6 @@
 Location::~Location() {
 }
 
-// init the buffers
-void Location::initBuffers() {
-    memset(this->m_latitude,0,LOCATION_COORDINATE_LENGTH+1);
-    memset(this->m_longitude,0,LOCATION_COORDINATE_LENGTH+1);
-    memset(this->m_msl_altitude_m,0,LOCATION_MSL_ALT_LENGTH+1);
-    memset(this->m_speed,0,LOCATION_SPEED_LENGTH+1);
-}
-
 // get the latitude
 char *Location::getLatitude() {
     return this->m_latitude;