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.h
- Revision:
- 5:1924c60356d0
- Parent:
- 3:e03960f91763
- Child:
- 6:0c477f5b79ff
--- a/request.h Wed Oct 21 08:10:12 2015 +0000
+++ b/request.h Wed Oct 21 08:25:17 2015 +0000
@@ -1,15 +1,12 @@
#pragma once
-class Request{
-
+#include "cantcoap.h"
+
+class Request : public CoapPDU
+{
public:
Request();
- void respond(char*, int size);
-
- char* getPayload();
- int getPayLoadSize();
+ Request(uint8_t *pdu, int pduLength);
+ Request(uint8_t *buffer, int bufferLength, int pduLength);
- private:
- char* payload;
- int payloadSize;
};
\ No newline at end of file
