Git Product home page Git Product logo

aiobtname's People

Contributors

frawau avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

sefiamor

aiobtname's Issues

Hardware/Software requirements

Hi François,

would you mind sharing the hardware/software requirements to get aiobtnameworking? I try to get this working on a Raspberry Pi zero. aioblescan works fine but aiobtname doesn't give me anything.

This is on Raspbian 9.4 wirh kernel version 4.14.52+ #1123 with Python 3.5.3.

Cheers,
cgtobi

Not working on Python 3.6

I'm using this library as part of an AppDaemon app. Updating some other parts of my environment forced me to update to Python 3.6.5. I then got an exception in code that used to be working on 3.5.2:

    self.event_loop = asyncio.new_event_loop()
    self.bt_socket = aiobtname.create_bt_socket(0)
    fac=self.event_loop.create_connection(aiobtname.BTNameRequester,sock=self.bt_socket)
    conn, btctrl = self.event_loop.run_until_complete(fac)

The last line throws this exception:

  File "/venv/homeassistant/lib/python3.6/site-packages/appdaemon/appdaemon.py", line 1513, in init_object
    init()
  File "/apps/homeassistant/appd-config/apps/presence.py", line 35, in initialize
    conn, btctrl = self.event_loop.run_until_complete(fac)
  File "/usr/lib/python3.6/asyncio/base_events.py", line 468, in run_until_complete
    return future.result()
  File "/usr/lib/python3.6/asyncio/base_events.py", line 801, in create_connection
    'A Stream Socket was expected, got {!r}'.format(sock))
ValueError: A Stream Socket was expected, got <socket.socket fd=13, family=AddressFamily.AF_BLUETOOTH, type=2051, proto=1>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.