SNIC UART Interface library: Serial to Wi-Fi library for Murata TypeYD Wi-Fi module. For more information about TypeYD: http://www.murata.co.jp/products/microwave/module/lbwb1zzydz/index.html
Dependents: SNIC-xively-jumpstart-demo SNIC-FluentLogger-example TCPEchoServer murataDemo ... more
Fork of YDwifiInterface by
Diff: Socket/Endpoint.cpp
- Revision:
- 33:33f1bc919486
- Parent:
- 29:6a0ba999597d
- Child:
- 35:e4e7f86fd975
--- a/Socket/Endpoint.cpp Fri May 30 08:30:40 2014 +0000
+++ b/Socket/Endpoint.cpp Tue Jun 03 08:53:07 2014 +0000
@@ -43,7 +43,7 @@
void Endpoint::reset_address(void)
{
- _ipAddress[0] = '\0';
+ mIpAddress[0] = '\0';
}
#include "stdio.h"
@@ -52,15 +52,18 @@
{
reset_address();
+ strcpy( mIpAddress, host );
+ mPort = port;
+
return 0;
}
char* Endpoint::get_address()
{
- return 0;
+ return mIpAddress;
}
int Endpoint::get_port()
{
- return 0;
+ return mPort;
}
muRata

Murata TypeYD