Comments (4)
On Mon, Jun 13, 2016 at 08:11:07AM -0700, Alex Ellwein wrote:
i am experimenting on tunneling CoAP packets through another transport
protocol / framework. There is a question: is it possible to
completely disable internal UDP transport and use another one instead?
The setup of transport implementations is not really flexible yet
because there has not been any contender byt UDP6. If you develop in a
way that means not using UDP6, I suggest first brutally changing UDP6 to
whatever you are using in protocol.py, and then we'll think about how to
select them cleanly. (Currently I'd lean towards the
create_{client,server}_context classmethods taking a positional
transport argument that adds the given interfaces.TransportEndpoint
implementation by default -- would you have a use case for pluggable
transports?)
P.S. found the text dumper which is also implemented as transport, but
is there a way to completely disable the UDP?
The text dumper does not really interact with the transports; it sits a
level lower wrapping an asyncio protocol and not a CoAP transport. (It's
bad enough that it needs to make pcap-ng fake UDP and IP headers; a
dumping transport wrapper might be handy, but I wouldn't know of an
"abstract CoAP messages" data format it could dump to.)
from aiocoap.
(Currently I'd lean towards the
create_{client,server}_context classmethods taking a positional
transport argument that adds the given interfaces.TransportEndpoint
implementation by default -- would you have a use case for pluggable
transports?)
Well, i don't know if it is a general case of a pluggable transport. I have some software (and hardware) components which are doing the data transport over the radio (LoRa protocol), so they allow me the put in an arbitrary payload to transport to the server and back. My idea was to tunnel the CoAP messages, that's why i thought aiocoap put the messages in for me, if it's not too much effort at all.
from aiocoap.
On Mon, Jun 13, 2016 at 09:06:26AM -0700, Alex Ellwein wrote:
Well, i don't know if it is a general case of a pluggable transport.
That was phrased badly by me: I'm unsure if we need runtime pluggable
transports. I'm positive we do need different implementations of the
transport interface.
I have some software (and hardware) components which are doing the
data transport over the radio (LoRa protocol), so they allow me the
put in an arbitrary payload to transport to the server and back. My
idea was to tunnel the CoAP messages, that's why i thought aiocoap put
the messages in for me, if it's not too much effort at all.
That sounds interesting (LoRa has shown up on my radar, but seemingly
not supporting IP, never got my attention). Let me know before you get
stuck, having non-default transports is important for aiocoap. (I'd like
to add TCP and websockets, but it might be some time until I get to it;
DTLS is probably pointless before
rbit/pydtls#6 is fixed).
from aiocoap.
Note to self: while PyDTLS still doesn't support the required DTLS version, FlexTLS does.
from aiocoap.
Related Issues (20)
- GET+observe with new state to trigger some process
- DTLS inclusion of server implementation
- coaps+ws: SSL Context defaults to `None` which make websockets connect through HTTP HOT 6
- pyodide: Prune transports
- How to use port 5683 for both client and server to send and receive device messages HOT 2
- Creating URI for the request without coap scheme HOT 2
- Tests don't cover regular UDP behavior
- Token variable in Message seems to get ignored. HOT 4
- Tradfri: Home Assistant: TypeError("'NoneType' object does not support item assignment") HOT 3
- Specifiy the network interface on windows HOT 3
- Adding Type Annotations and Package Type Information HOT 5
- Keeping DTLS session alive HOT 1
- All appears to be working but no response being delivered HOT 11
- TestServerTCP tests fail garbage collection on 3.12
- How to simultaneously observe multiple resources? HOT 6
- Outdated URL in Readme HOT 1
- Possible to only alert subset of resource observers? HOT 2
- Degraded UX when attempting to interact with non-coap hosts HOT 1
- Network error: [Errno 111] - Cannot interact with CoAP server outside a Docker Container HOT 2
- Drop socknumbers workaround
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 aiocoap.