Skip to content

What is the terminal script to run CoAP server

Im trying to run this CoAP server from on a raspberry pi. i cant seem to find much instructions. This was one of the CoAP that my instructor wanted us to use, my instructor pretty much left us hanging with no help at all but this link.

i followed the install instructions on the github page, the only thing that wouldnt install is the section

Install instructions for CoRE Resource Directory. Mongod wouldnt install for this section so i gave up. so i dont know if this section is important or not

What are the commands for the terminal to get it running and doing something.

it says to type in to run the server

cd CoAPthon

and from what it looks like its running

but nothing happens, so im not sure if its just not working or if theres just nothing there for it to do, or if there is another file i need to run with the

Im very new to using CoAP and will eventually need to add a sensor to it do record temp but i want to make sure i know the server is running properly before i add that part in

any input would be great



For future individuals that might need help with this, use aioCoAP, its much easier then CoAPthon

get it from here

all you need to do is mess with three files labeled, and Add resources and classes for sensors and what not to is where you would add your code for the sensors or whatever you need. you alter the uri

run it by type in the command in the terminal (go to directory first that has the server) type in python
in another terminal do the same thing but instead run python

and the server should be running then all you need is a client for the get request. If you were like me and needed to use Copper go here to install it for chrome