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.
Response/SocketStartReceiveResponse.cpp
- Committer:
- yangcq88517
- Date:
- 2016-03-16
- Revision:
- 9:0ce800923eda
- Parent:
- 0:8e83b9448758
File content as of revision 9:0ce800923eda:
#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; }