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: Response/SocketStartReceiveResponse.cpp
- Revision:
- 0:8e83b9448758
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Response/SocketStartReceiveResponse.cpp Tue Feb 03 21:24:15 2015 +0000 @@ -0,0 +1,20 @@ +#include "SocketStartReceiveResponse.h" + +using namespace SmartLabMuRata; + +SocketStartReceiveResponse::SocketStartReceiveResponse(Payload * payload) + : Payload(payload) +{ } + +SNICCode SocketStartReceiveResponse::GetStatus() +{ + return (SNICCode)GetData()[2]; +} + +int SocketStartReceiveResponse::GetReceiveBufferSize() +{ + if (GetStatus() == SNIC_SUCCESS) + return GetData()[3] << 8 | GetData()[4]; + + return -1; +} \ No newline at end of file