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
Diff: request.cpp
- Revision:
- 3:e03960f91763
- Parent:
- 1:ab04e3d36ade
- Child:
- 5:1924c60356d0
--- a/request.cpp Tue Oct 20 18:57:05 2015 +0000 +++ b/request.cpp Tue Oct 20 20:57:45 2015 +0000 @@ -1,6 +1,22 @@ #include "request.h" +Request::Request() +{ + +} + void Request::respond(char* data, int size) { - + payload = data; + payloadSize = size; +} + +char* Request::getPayload() +{ + return payload; +} + +int Request::getPayLoadSize() +{ + return payloadSize; } \ No newline at end of file