Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: DebugLib EthernetInterface cantcoap mbed-rtos
Fork of yeswecancoap by
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);
}
