Minor fixes in LifxLightBulb driver (not fully tested yet)
[iot2.git] / iotjava / iotruntime / cpp / IoTUDP.hpp
index ccdb5d92ec6c3e2bf26f5fb14892121a140a42ce..1c46ffa599557a5e090fd6562424517b80fb3a23 100644 (file)
@@ -62,7 +62,7 @@ class IoTUDP
                int receiveData(void* buffer, int iMaxDataLength) {
 
                        unsigned short destinationPort = (unsigned short) iDstPort;
-                       socket->recvFrom(buffer, iMaxDataLength, strHostAddress, destinationPort);
+                       return socket->recvFrom(buffer, iMaxDataLength, strHostAddress, destinationPort);
                }
 };
 #endif