Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
135169ef
Commit
135169ef
authored
9 years ago
by
Lotte Steenbrink
Browse files
Options
Downloads
Patches
Plain Diff
microcoap_server: add instructions for FF Copper
parent
9d929c7a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/microcoap_server/README.md
+53
-5
53 additions, 5 deletions
examples/microcoap_server/README.md
with
53 additions
and
5 deletions
examples/microcoap_server/README.md
+
53
−
5
View file @
135169ef
microcoap server example
========================
This application is meant to get you started with impementing a CoAP server on RIOT.
It uses the
gnrc
network stack through RIOT's conn socket API.
This application is meant to get you started with imp
l
ementing a CoAP server on RIOT.
It uses the
GNRC
network stack through RIOT's conn socket API.
Usage
=====
...
...
@@ -58,11 +58,59 @@ Waiting for incoming UDP packet...
The link-layer address in this case is "fe80::f8bf:2bff:fe01:9ea3", the only
"scope: local" address set.
Connect using libcoap CLI
=========================
Testing
=======
There are multiple external CoAP clients you can use to test the server on native.
libcoap CLI
-----------
(replace "fe80::f8bf:2bff:fe01:9ea3" with your link-layer address)
```
# coap-client coap://[fe80::f8bf:2bff:fe01:9ea3%tap0]/riot/board
# coap-client "coap://[fe80::f8bf:2bff:fe01:9ea3%tap0]/riot/board"
```
Copper (Firefox Plugin)
-----------------------
The Copper plugin for Firefox provides you with a nice graphical interface, but
getting it to work with RIOT requires a little setup.
Make sure you've installed
-
The
[
Firefox Copper plugin
](
https://addons.mozilla.org/en-US/firefox/addon/copper-270430/
)
-
The Router Advertisement Daemon (radvd)
Enter the following into your
`/etc/radvd.conf`
(if it doesn't exist yet, create one):
```
interface tap0
{
AdvSendAdvert on;
MinRtrAdvInterval 3;
MaxRtrAdvInterval 10;
prefix fc00::/64
{
AdvOnLink on;
AdvAutonomous on;
AdvRouterAddr off;
};
};
```
(you can use
`radvd -c`
to check for syntax errors)
and run
```
/bin/systemctl start radvd.service
```
Now you can enter
```
coap://[fc00::1]/riot/board
```
into your Firefox address bar.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment