Giter VIP home page Giter VIP logo

flic-button-adapter's People

Contributors

freaktechnik avatar mrstegeman avatar

Stargazers

 avatar

Watchers

 avatar  avatar

flic-button-adapter's Issues

Flic 2 not detected

Hi !
I'm trying to connect 4 Flic 2 buttons to my gateway. I'm using RPI 4B.

Pairing doesn't find buttons, I've tried to hold buttons, nothing happened.
Bluetooth works, tested with Mi Floral Care.

Thanks for help

Here a chunk of logs :

2020-04-26 11:59:46.673 INFO   : Loading add-on: flic-button-adapter
2020-04-26 11:59:47.596 INFO   : flic-button-adapter: Opening database: /home/pi/.mozilla-iot/config/db.sqlite3
2020-04-26 11:59:48.006 INFO   : flic-button-adapter: Loading add-on flic-button-adapter from /home/pi/.mozilla-iot/addons/flic-button-adapter
2020-04-26 11:59:48.083 INFO   : flic-button-adapter: flicd[stderr]: Available HCI devices found:
2020-04-26 11:59:48.084 INFO   : flic-button-adapter: 
2020-04-26 11:59:48.085 INFO   : flic-button-adapter: flicd[stderr]: hci0
2020-04-26 11:59:48.085 INFO   : flic-button-adapter: 
2020-04-26 11:59:48.086 INFO   : flic-button-adapter: Trying hci0
2020-04-26 11:59:48.087 INFO   : flic-button-adapter: Flic server is now up and running!
2020-04-26 11:59:48.087 INFO   : flic-button-adapter: HCI socket busy, bringing down and then retrying
2020-04-26 11:59:48.088 INFO   : flic-button-adapter: 
2020-04-26 11:59:48.100 INFO   : flic-button-adapter: flicd[stderr]: Accepted new client
2020-04-26 11:59:48.101 INFO   : flic-button-adapter: 
2020-04-26 11:59:49.095 INFO   : flic-button-adapter: flicd[stderr]: Successfully bound HCI socket
2020-04-26 11:59:49.096 INFO   : flic-button-adapter: 
2020-04-26 11:59:49.602 INFO   : flic-button-adapter: flicd[stderr]: Initialization of Bluetooth controller done!
2020-04-26 11:59:49.603 INFO   : flic-button-adapter: 
2020-04-26 12:03:15.065 INFO   : Opened a new things socket
2020-04-26 12:03:15.085 INFO   : About to call startPairing on ThingURLAdapter
2020-04-26 12:03:15.087 INFO   : About to call startPairing on FlicButtonAdapter
2020-04-26 12:04:15.089 INFO   : Pairing timeout
2020-04-26 12:04:15.091 INFO   : thing-url-adapter: Adapter: ThingURLAdapter id thing-url-adapter pairing cancelled

How to add buttons

I'm having difficulty setting up my Flic button using this adapter.

I have a Raspberry Pi Zero W running my gateway and can pair my Flic buttons using the SimpleClient within the Flic SDK, so I don't have any hardware issues.

Can you add to the README to describe how to actually add buttons?
Do I need to do this within the SDK itself, or does your code include this process?

A step-by-step guide for beginners like me would be really helpful

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.