Comments (5)
What is your coap client? libcoap?
from emqx-coap.
Please share your emqtt log, such as log/error.log, log/erlang.log.1. Thanks!
And what is your emqttd version?
from emqx-coap.
coap client: californium
log/error.log:
2017-11-05 19:34:16.529 [error] <0.482.0>@emq_coap_resource:coap_put:76 CoAP-RES: put has error, Prefix=[<<"mqtt">>], Name=[<<"topic1">>,<<"toic2">>], Content={coap_content,undefined,60,<<"text/plain">>,[],<<"helloworld!">>}
2017-11-05 19:34:36.530 [error] <0.360.0> Supervisor {<0.360.0>,coap_channel_sup_sup} had child {{127,0,0,1},49988} started with {coap_channel_sup,start_link,undefined} at <0.479.0> exit with reason killed in context child_terminated
2017-11-05 19:34:36.530 [error] <0.480.0> gen_server <0.480.0> terminated with reason: killed
2017-11-05 19:34:36.530 [error] <0.480.0> CRASH REPORT Process <0.480.0> with 0 neighbours exited with reason: killed in gen_server:terminate/7 line 812
Other log files are not recorded.
from emqx-coap.
emqttd version: 2.3
from emqx-coap.
You can change your url to "coap://localhost/mqtt?c=client1", and set the uri_path option of "topic1/topic2" separately by the method "addUriPath", then the uri_path won't be split by "/". For example, you can make your put like,
String resourcePath = "topic1/topic2";
String uri = "coap://localhost/mqtt?c=client1”;
Request request = Request.newPut();
request.setURI(uri);
request.getOptions().addUriPath(resourcePath);
Hope it will help you.
from emqx-coap.
Related Issues (20)
- coap get returns 5.00 HOT 1
- It does not work with MQTT message with qos >= 1? HOT 2
- can't connect to emqx by DTLS HOT 8
- EMQ的COAP插件相关问题 HOT 1
- EMQ
- EMQ 最新版的coap插件问题 HOT 4
- COAP on IPv6 HOT 5
- after coap plugin start,publish coap message report "WARN coap_network_read: unreachable" HOT 2
- Coap-client Request timeout problem HOT 5
- emqx-coap has device control function? HOT 1
- Is there any documentation about how to use? HOT 1
- CoAP plugin unsubscribes from topic
- EMQ的coap插件猜想 HOT 1
- coap DTLS
- CoAP Notification acknowledge failure
- After HTTP authentication is enabled, in addition to successfully obtaining tokens, the client fails to publish data
- Unable to use this plugin with emqttd
- Coap plugin started, but can't use it HOT 2
- Can this plugin support CoAP over TCP? HOT 1
- Subtopic doesn't work HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emqx-coap.