Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Geithner, Thomas
desk-control
Commits
0d735a37
Commit
0d735a37
authored
Oct 10, 2017
by
Mall, Anon
Browse files
fixed min and max height get coap
parent
4db7e0bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/coap-frontend.cpp
View file @
0d735a37
...
...
@@ -413,14 +413,14 @@ void CoapFrontend::init_resources(coap_context_t *ctx)
m_res_offset
=
offset
;
//max_height
max_height
=
coap_resource_init
((
unsigned
char
*
)
"max
height"
,
10
,
COAP_RESOURCE_FLAGS_NOTIFY_CON
);
max_height
=
coap_resource_init
((
unsigned
char
*
)
"max
_
height"
,
10
,
COAP_RESOURCE_FLAGS_NOTIFY_CON
);
s_callbackMap
.
emplace
(
max_height
,
this
);
coap_register_handler
(
max_height
,
COAP_REQUEST_GET
,
s_get_max_height
);
coap_add_resource
(
ctx
,
max_height
);
m_res_max_height
=
max_height
;
//min_height
min_height
=
coap_resource_init
((
unsigned
char
*
)
"min
height"
,
10
,
COAP_RESOURCE_FLAGS_NOTIFY_CON
);
min_height
=
coap_resource_init
((
unsigned
char
*
)
"min
_
height"
,
10
,
COAP_RESOURCE_FLAGS_NOTIFY_CON
);
s_callbackMap
.
emplace
(
min_height
,
this
);
coap_register_handler
(
min_height
,
COAP_REQUEST_GET
,
s_get_min_height
);
coap_add_resource
(
ctx
,
min_height
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment