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.cpp
00001 #include "request.h" 00002 00003 Request::Request() : CoapPDU() 00004 { 00005 00006 } 00007 00008 Request::Request(uint8_t *pdu, int pduLength) : CoapPDU(pdu, pduLength) 00009 { 00010 00011 } 00012 00013 Request::Request(uint8_t *buffer, int bufferLength, int pduLength) : CoapPDU(buffer, bufferLength, pduLength) 00014 { 00015 00016 } 00017 00018 char* Request::getContent() 00019 { 00020 return reinterpret_cast<char*>(CoapPDU::getPayloadPointer()); 00021 } 00022 00023 int Request::getContentLength() 00024 { 00025 return CoapPDU::getPayloadLength(); 00026 } 00027 00028 int Request::hasContent() 00029 { 00030 return CoapPDU::getPayloadLength(); 00031 } 00032 00033
Generated on Wed Jul 13 2022 18:09:57 by
1.7.2
