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

Allow aiocoap experimentation #28

Merged
merged 1 commit into from May 3, 2017

Conversation

3 participants
@balloob
Collaborator

balloob commented May 3, 2017

This updates our Dockerfile to allow experimentation with aiocoap. Aiocoap is a pure Python implementation based on asyncio. This would mean we no longer have to depend on calling a process to communicate with IKEA.

This branch contains support for getting the right branch of aiocoap working + the cython bindings for tinydtls. I've included a small demo script in the scripts dir for now to show that it works.

script/dev_docker
[ in docker shell ]
cd script
python3 aiotry.py <IKEA KEY>

That will give you an output like this:

root@moby:/usr/src/app/script# python3 aiotry.py SECRETKEY
decrypt_verify(): found 24 bytes cleartext
decrypt_verify(): found 46 bytes cleartext
RECEIVED STATUS 2.05 Content
RECEIVED PAYLOAD [65536,65537,65538,65539,65540]
Exception ignored in: 'dtls._write'
Traceback (most recent call last):
  File "/usr/src/build/aiocoap/aiocoap/transports/tinydtls.py", line 117, in _write
AttributeError: 'DTLSClientConnection' object has no attribute '_transport'

@balloob balloob referenced this pull request May 3, 2017

Closed

PyTradfri 2.0: sans-io #29

@ggravlingen ggravlingen merged commit 0a08187 into master May 3, 2017

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
@lwis

This comment has been minimized.

Collaborator

lwis commented May 29, 2017

What are the next steps to get this working? Are we waiting on upstream development?

@balloob

This comment has been minimized.

Collaborator

balloob commented May 30, 2017

Extract parsing and requesting code. Write a new request layer based on aiocoap tinydtls branch. See #29

@lwis lwis deleted the experimental-aiocoap branch Jun 14, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment