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 Takao Kishino

Revision:
50:cd632a13e4dc
Parent:
41:1c1b5ad4d491
--- a/Socket/Socket.h	Tue Mar 31 02:50:55 2015 +0000
+++ b/Socket/Socket.h	Tue Mar 31 02:53:44 2015 +0000
@@ -24,6 +24,11 @@
 #include "SNIC_Core.h"
 #include "SNIC_UartMsgUtil.h"
 
+#define htons(x) __REV16(x)
+#define ntohs(x) __REV16(x)
+#define htonl(x) __REV(x)
+#define ntohl(x) __REV(x)
+ 
 typedef unsigned long socklen_t;
 
 /** Socket file descriptor and select wrapper