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 1 commit into from May 3, 2017


3 participants

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.

[ in docker shell ]
cd script
python3 <IKEA KEY>

That will give you an output like this:

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

@balloob balloob referenced this pull request May 3, 2017


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
continuous-integration/travis-ci/push The Travis CI build passed

This comment has been minimized.


lwis commented May 29, 2017

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


This comment has been minimized.


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