-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from mrdeep1/server_version
server.cc: Add in alternative resource
- Loading branch information
Showing
3 changed files
with
20 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
Minimal CoAP Client and Server Examples for libcoap | ||
=================================================== | ||
|
||
These examples require [libcoap-3](https://github.com/obgm/libcoap) to | ||
work. | ||
These examples require [libcoap-3](https://github.com/obgm/libcoap) with a | ||
minimum version of 4.3.2 to compile and execute. | ||
|
||
`client.cc` shows a minimal libcoap client that sends a confirmable | ||
`client.cc` is a minimal libcoap client that sends a confirmable | ||
UDP `GET /hello` request to a pre-defined CoAP server | ||
([coap.me](http://coap.me) in this example) and outputs a received | ||
response. It supports an optional argument which can be a different | ||
|
@@ -13,7 +13,8 @@ then this is handled by a NON-confirmable request. | |
|
||
`server.cc` is a minimal CoAP server that binds on | ||
`::5683`, as well as the multicast IPs 224.0.1.187 and ff02::fd. | ||
It has a single resource `/hello`. | ||
It has two defined resources `/hello` and `hello/my` along with the | ||
inbuilt resource `.well-known/core`. | ||
|
||
Copyright (C) 2018-2024 Olaf Bergmann <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters