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:
2015-02-03
Revision:
0:8e83b9448758

File content as of revision 0:8e83b9448758:

#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;
}