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
request.h@7:1bed29e1b0a4, 2015-10-21 (annotated)
- Committer:
- sillevl
- Date:
- Wed Oct 21 10:23:21 2015 +0000
- Revision:
- 7:1bed29e1b0a4
- Parent:
- 6:0c477f5b79ff
- Child:
- 24:8319d71d6749
added message type support and added abstraction to request class
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sillevl | 1:ab04e3d36ade | 1 | #pragma once |
sillevl | 1:ab04e3d36ade | 2 | |
sillevl | 5:1924c60356d0 | 3 | #include "cantcoap.h" |
sillevl | 5:1924c60356d0 | 4 | |
sillevl | 6:0c477f5b79ff | 5 | class Request : protected CoapPDU |
sillevl | 5:1924c60356d0 | 6 | { |
sillevl | 1:ab04e3d36ade | 7 | public: |
sillevl | 3:e03960f91763 | 8 | Request(); |
sillevl | 5:1924c60356d0 | 9 | Request(uint8_t *pdu, int pduLength); |
sillevl | 5:1924c60356d0 | 10 | Request(uint8_t *buffer, int bufferLength, int pduLength); |
sillevl | 3:e03960f91763 | 11 | |
sillevl | 7:1bed29e1b0a4 | 12 | using CoapPDU::Type; |
sillevl | 7:1bed29e1b0a4 | 13 | using CoapPDU::Code; |
sillevl | 7:1bed29e1b0a4 | 14 | |
sillevl | 7:1bed29e1b0a4 | 15 | using CoapPDU::getType; |
sillevl | 7:1bed29e1b0a4 | 16 | using CoapPDU::getCode; |
sillevl | 7:1bed29e1b0a4 | 17 | |
sillevl | 7:1bed29e1b0a4 | 18 | char* getContent(); |
sillevl | 7:1bed29e1b0a4 | 19 | int getContentLength(); |
sillevl | 7:1bed29e1b0a4 | 20 | int hasContent(); |
sillevl | 7:1bed29e1b0a4 | 21 | |
sillevl | 7:1bed29e1b0a4 | 22 | /* |
sillevl | 7:1bed29e1b0a4 | 23 | int getMessageId(); |
sillevl | 7:1bed29e1b0a4 | 24 | int getToken();*/ |
sillevl | 7:1bed29e1b0a4 | 25 | |
sillevl | 7:1bed29e1b0a4 | 26 | //using getContentFormat(); |
sillevl | 7:1bed29e1b0a4 | 27 | |
sillevl | 7:1bed29e1b0a4 | 28 | //getOptions(); |
sillevl | 7:1bed29e1b0a4 | 29 | |
sillevl | 7:1bed29e1b0a4 | 30 | |
sillevl | 1:ab04e3d36ade | 31 | }; |