Murata RF modules are designed to simplify wireless development and certification by minimizing the amount of RF expertise you need to wirelessly enable a wide range of applications.
Diff: Type/IPAddress.cpp
- Revision:
- 1:fd19bd683e90
- Parent:
- 0:8e83b9448758
- Child:
- 9:0ce800923eda
--- a/Type/IPAddress.cpp Tue Feb 03 21:24:15 2015 +0000 +++ b/Type/IPAddress.cpp Wed Feb 04 18:10:30 2015 +0000 @@ -31,9 +31,11 @@ return 4; } -string IPAddress::ToString() +void IPAddress::ToString(string * ipString) { - char buffer [16]; + if (ipString == NULL) + return; + char buffer[16]; sprintf (buffer, "%d.%d.%d.%d", address[0], address[1], address[2], address[3]); - return string(buffer); + ipString->assign(buffer); } \ No newline at end of file