1248 / microcoap

A small CoAP implementation for microcontrollers
MIT License
334 stars 122 forks source link

Microcoap does not respond except in Copper #30

Open mishoboss opened 8 years ago

mishoboss commented 8 years ago

I try to make Microcoap works on esp8266. And it works good! But only when tested with Copper in Firefox. I don't get request response when I try to access it with node-coap (https://github.com/mcollina/node-coap/). The node-coap response event doesn't fire.

I found a similar question with (probably) the same issue here: https://stackoverflow.com/questions/31369908/can-not-connect-to-coap-resource-on-arduino

Node-coap works with "coap://coap.me:5683/", so I guess the issue should be in Microcoap, or maybe some protocol implementation difference? Any ideas are welcome.

jdkanani commented 8 years ago

Related to https://github.com/1248/microcoap/pull/8

Removing memset line will do the trick. Check commit https://github.com/mbialon/microcoap/commit/3cf97f9cc8351212300710c94074fa2cfdfdbd9d