Yes We Can / yeswecancoap

Dependencies:   DebugLib EthernetInterface cantcoap mbed-rtos

Dependents:   COAP coap

Fork of yeswecancoap by Sille Van Landschoot

response.cpp

Committer:
sillevl
Date:
2015-10-21
Revision:
6:0c477f5b79ff
Parent:
5:1924c60356d0
Child:
7:1bed29e1b0a4

File content as of revision 6:0c477f5b79ff:

#include "response.h"


Response::Response() : CoapPDU()
{
       
}

Response::Response(uint8_t *pdu, int pduLength) : CoapPDU(pdu, pduLength)
{
    
}

Response::Response(uint8_t *buffer, int bufferLength, int pduLength) : CoapPDU(buffer, bufferLength, pduLength)
{
    
}

void Response::setContent(char* content, int length)
{
    setPayload(reinterpret_cast<uint8_t*>(content), length);
}