question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Client observe does not work for large message

See original GitHub issue

On the client side, I want to observe a resource with a large message and I’m getting a bad request as a status code. I would like to intensify that for small and medium messages(size until 1K), it works well.

... const setup = { host: 'CLOUD_IP', observe: true, port: 5683, pathname: '/middlewareToCloud', method: 'GET' } const req = coap.request(setup)

I had added the option Block2, but it did not work: req.setOption('Block2', Buffer.of(0x2))

What do I need to do to get the payload for the large message? Am I doing something wrong or is it an issue for a large message?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
desireesantoscommented, Dec 3, 2021

Good point @JKRhb! From server-side is another library(libcoap). I’ll will change from libcoap to node-coap to check!

Currently, I use the Copper plugin to execute some tests and I can get large messages using this plugin. Screenshot 2021-12-03 at 11 30 14

0reactions
stale[bot]commented, Dec 26, 2021

This issue has been automatically closed because of inactivity. Please open a new issue if still relevant and make sure to include all relevant details, logs and reproduction steps. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Coap Client observe does not work for large message
On the client-side, I want to observe a resource with a large message and I'm getting a bad request as a status code....
Read more >
Client's Observe Notification not Synchronized #998 - GitHub
Hello everyone, Is it correct to assume that an observation value will not be updated until the client triggers a registration update?
Read more >
nRF5 SDK v15.2.0: CoAP Observe
The resource handler function is responsible for sending a response message back to the client. It adds a sequence number in the observe...
Read more >
Observe multiple client computers in Remote Desktop
Observe multiple client computers in Remote Desktop. You can observe multiple clients in the same window, cycling through the list of observed computers....
Read more >
Using the Service Observe feature on Windows clients
Use this procedure to use the Service Observe feature to listen in and possibly talk on calls to extensions, attendants, agents, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found