M2XStreamClient fork with a workaround in M2XStreamClient.cpp for the MTS_Wifi_Connect_M2X example.

Dependents:   STM32_MTS_Wifi_Connect_M2X M2X_STM32_MTS_Temp MTS_WiFi_Connect_M2X_Example

Fork of M2XStreamClient by AT&T M2X Team

Utility.cpp

Committer:
joe_tijerina
Date:
2014-08-26
Revision:
2:6fbc104d1321
Parent:
0:f479e4f4db0e

File content as of revision 2:6fbc104d1321:

#include "Utility.h"

void delay(int ms) {
  wait_ms(ms);
}

char* strdup(const char* s) {
  char* ret = (char*) malloc(strlen(s) + 1);
  if (ret == NULL) { return ret;}
  return strcpy(ret, s);
}