mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
Minor modification in .well-known/core service after the comments of Matthias Kovatsch.
This commit is contained in:
parent
a81efabfb5
commit
5fcfd826bd
@ -126,9 +126,9 @@ discover_handler(REQUEST* request, RESPONSE* response)
|
||||
{
|
||||
char temp[100];
|
||||
int index = 0;
|
||||
index += sprintf(temp + index, "%s\n", "<helloworld>;n=\"HelloWorld\"");
|
||||
index += sprintf(temp + index, "%s\n", "<led>;n=\"LedControl\"");
|
||||
index += sprintf(temp + index, "%s\n", "<light>;n=\"Light\"");
|
||||
index += sprintf(temp + index, "%s,", "</helloworld>;n=\"HelloWorld\"");
|
||||
index += sprintf(temp + index, "%s,", "</led>;n=\"LedControl\"");
|
||||
index += sprintf(temp + index, "%s", "</light>;n=\"Light\"");
|
||||
|
||||
rest_set_response_payload(response, temp, strlen(temp));
|
||||
rest_set_header_content_type(response, APPLICATION_LINK_FORMAT);
|
||||
|
Loading…
Reference in New Issue
Block a user