-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcoapresource.cpp
More file actions
91 lines (73 loc) · 1.42 KB
/
coapresource.cpp
File metadata and controls
91 lines (73 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#include "coapresource.h"
#include <ESP8266WiFi.h>
CoAPResource::CoAPResource()
{
}
char *CoAPResource::getUri()
{
return uri;
}
int CoAPResource::setUri(char *uri)
{
return -1;
}
CoapPDU::Code CoAPResource::getCode()
{
return CoapPDU::COAP_UNDEFINED_CODE;
}
uint8_t *CoAPResource::getPayloadPointer()
{
return nullptr;
}
int CoAPResource::getPayloadLength()
{
return 0;
}
void CoAPResource::setPayload(uint8_t *value, int len)
{
return;
}
CoapPDU::ContentFormat CoAPResource::getContentFormat()
{
return CoapPDU::COAP_CONTENT_FORMAT_TEXT_PLAIN;
}
bool CoAPResource::getMethodIsPrivate()
{
return true;
}
int CoAPResource::getMethod(uint8_t *payloadValue, int payloadLen, CoapPDU::ContentFormat contentFormat)
{
return -1;
}
int CoAPResource::putMethod(uint8_t *payloadValue, int payloadLen, CoapPDU::ContentFormat contentFormat)
{
return -1;
}
bool CoAPResource::putMethodIsPrivate()
{
return true;
}
int CoAPResource::postMethod(uint8_t *payloadValue, int payloadLen, CoapPDU::ContentFormat contentFormat)
{
return -1;
}
bool CoAPResource::postMethodIsPrivate()
{
return true;
}
int CoAPResource::deleteMethod(uint8_t *payloadValue, int payloadLen, CoapPDU::ContentFormat contentFormat)
{
return -1;
}
bool CoAPResource::deleteMethodIsPrivate()
{
return true;
}
bool CoAPResource::isObservable()
{
return false;
}
bool CoAPResource::isResourceChanged()
{
return true;
}