The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

domguinard (71) [Avatar] Offline
#1
Reposting here as this is a separate question original post is here: https://forums.manning.com/posts/list/37635.page


389102 wrote:I simulated a coap server in my computer and plugin copper in firefox ,i click "GET" but i didn't see any response from the browser(fig1) ,i can't get co2 value when i started wot-server(fig3 upper)

I simulated a coap server in raspberry pi 2 ,i didn't get any response about co2 value (fig2) ,i can get co2 value when i started wot-server(fig3 bottom) in chapter7.3

how should i simulate a coap server in computer and get response from copper?

thanks a lot!



domguinard (71) [Avatar] Offline
#2
Issues with CoAP server
Hi,

I tested on my Mac again and it does work fine (see screenshot). Which OS do you use?

I can see two possible causes:
1) Your firewall does not allow this port or UDP traffic (CoAP is using UDP unlike HTTP which is using TCP). I would check the configuration of your firewall or NAT boxes (give is a try with "localhost" if you run the CoAP server on the same machine as Copper.
2) You have an older version of the CoAP library (we also had problems previously). Try getting the latest code from the github repo and make sure you delete the
npm_modules
folder and run
npm install
again.

Hope that helps, lets us know if not, we know the author of Copper so we'll contact him if you did not manage yet.
389102 (8) [Avatar] Offline
#3
coap.png
[ 183 KB ]
coap2.png
[ 26 KB ]
Hi, thanks for your reply,

I run CoAP server in ubuntu as Copper

I try to delete node_modules and use npm install once again but still can't see co2 value(see coap.png & coap.png)

Thanks a lot!