Skip to content

Conversation

@chrysn
Copy link
Member

@chrysn chrysn commented Dec 12, 2025

Beyond the things that gave me trouble, one aspect not covered in the document are port numbers. They don't really have a place in the transport, but setting them in a Uri-Port option might be practical, especially for when an MCU has more UARTs it fans out to, as that'd allow the main entry point to do simple port based reverse proxying (with barely any real need to do more than forwarding messages, as long as it does not issue requests itself downstream), and then they need support in the URI. This might be easier though when going with the more generic coap:// scheme as per my transport-indication recommendations.

@chrysn chrysn requested a review from cabo as a code owner December 12, 2025 10:12
@cabo
Copy link
Contributor

cabo commented Dec 12, 2025

Is it the hostname or the port that you would use for locally selecting UART lines?

Co-authored-by: cabo <cabo@tzi.org>
@cabo cabo merged commit 70c2cfd into t2trg:main Dec 12, 2025
1 check passed
@chrysn
Copy link
Member Author

chrysn commented Dec 12, 2025

hostname or port

Either would be viable, and both probably need some attention. I just think that it's a bit easier for a very constrained "border proxy" to manage its back-ends by numbers (counting up, discarding leading zeros or even using over-long CoAP uint options) than coming up with names (base-32'ing a count or otherwise filling the allowed byte values of a UTF-8 string). And especially when people are asking questions about using this on a shared RS485 bus, where hostnames would be the more natural places for participant identifiers.

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

Successfully merging this pull request may close these issues.

2 participants