Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I change the block size in a GET request? #175

Closed
kustovnd opened this issue Jun 9, 2023 · 0 comments
Closed

How do I change the block size in a GET request? #175

kustovnd opened this issue Jun 9, 2023 · 0 comments

Comments

@kustovnd
Copy link

kustovnd commented Jun 9, 2023

Hi. I'm new to CoAPhton.
There is a simple question: how to change the size of the requested block in a GET request?

I have the following code:

from coapthon.client.helperclient import HelperClient
from coapthon.utils import parse_uri
client = HelperClient(server=("bbbb:8542:bbff:2:fc9e:48d0:a8de:14f5", 5683))
response = client.get
client.stop()

By default, a block of 16 bytes is requested. I need to change this length to 64. How can I do this?

Ms0G_cIZA-Q

@kustovnd kustovnd changed the title How do I change the size2 in a GET request? How do I change the SZX in a GET request? Jun 9, 2023
@kustovnd kustovnd changed the title How do I change the SZX in a GET request? How do I change the block size in a GET request? Jun 9, 2023
@kustovnd kustovnd closed this as not planned Won't fix, can't repro, duplicate, stale Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant