Flic Home

    Community

    • Login
    • Search
    • Popular
    • Users
    1. Home
    2. Recent
    Log in to post
    • All categories
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics
    • mathias

      Reboot the flic hub remotely
      Developers • • mathias

      5
      1
      Votes
      5
      Posts
      1104
      Views

      mathias

      @Emil Hey, flicteam. Any idea why this happens or if I can help figure out why connection is lost now and then... Also, that reboot function would be handy for a lot of reasons.

    • info 6

      Error code 1 on scan
      Developers • • info 6

      3
      0
      Votes
      3
      Posts
      1529
      Views

      anton

      @anton said in Error code 1 on scan:

      @info-6 All flic2lib.buttonscanner error codes are documented here: https://github.com/50ButtonsEach/flic2lib-ios/wiki/Documentation#flicbuttonscannererrorcode

      error 1 appears to be "The scan could not be started since bluetooth was not in the powered on state."

      Also keep in mind that the state will not be "in the powered on state" if you have forgotten to request for bluetooth permissions in your app, or if the user has rejected the request.

    • info 6

      Android asks location authorisation
      Developers • • info 6

      2
      0
      Votes
      2
      Posts
      721
      Views

      Emil

      Please read https://developer.android.com/guide/topics/connectivity/bluetooth#Permissions:

      The other permission that you must declare is ACCESS_FINE_LOCATION. Your app needs this permission because a Bluetooth scan can be used to gather information about the location of the user. This information may come from the user's own devices, as well as Bluetooth beacons in use at locations such as shops and transit facilities.

    • info 6

      Detecting on Android if the OS bluetooth is on or off
      Developers • • info 6

      2
      0
      Votes
      2
      Posts
      663
      Views

      Emil

      Hi, just use this method: https://developer.android.com/reference/android/bluetooth/BluetoothAdapter#isEnabled(). Or use https://developer.android.com/reference/android/bluetooth/BluetoothAdapter#ACTION_STATE_CHANGED to listen to state changes.

    • areader0

      Possible future LED behaviour via Flic API
      Developers • • areader0

      10
      0
      Votes
      10
      Posts
      5854
      Views

      paull

      Hi @Emil I wanted to follow up. Is there a capability in the API now to control the Flic LED?

      Thanks

    • savas.cetin

      No "show response" in HTTP-Request app
      Developers • • savas.cetin

      3
      0
      Votes
      3
      Posts
      1346
      Views

      Spacey

      Any news on this, really do need a way to show HTTP responses.
      Ideally, I want to chain the "play sound" on the HUB2 based on HTTP response.

    • info 6

      On iOS, disconnecting a button works but without messages.
      Developers • • info 6

      4
      0
      Votes
      4
      Posts
      1120
      Views

      anton

      Strange. I tested it just now on iOS 13.3.1 and it works.

      Calling:

      [button disconnect];

      Causes:

      - (void)button:(FLICButton *)button didDisconnectWithError:(NSError *)error;

      And you are sure that the delegates are set properly and that you are not accidentally calling on a nil-object or something?

    • info 6

      How to save batteries on Flic2
      Developers • • info 6

      1
      0
      Votes
      1
      Posts
      527
      Views

      No one has replied

    • schenkl

      Raspberry pi button does not work on reboot
      Developers • • schenkl

      7
      0
      Votes
      7
      Posts
      1292
      Views

      laurence.schenk

      I have figured it out. When I started flicd through /etc/rc.local it was running as root with no environmental variables, and the data of the buttons was stored in the root directory. When I ran the exact same command as user pi, the environmental variables were set, PATH, USER etc. The fix was simple: use full path names for the data base file.
      My apologies for wasting your time when the error was mine.

    • grant.luck

      Flic 2 Firmware version 8 bug
      Developers • • grant.luck

      14
      0
      Votes
      14
      Posts
      2710
      Views

      grant.luck

      @Emil Our client is sending 4 buttons to a tender and with the issues that are happening on version 8 could we request the following buttons also be placed on version 7 for the mean time. They are
      BA48 – A39996
      BA48 – A54514
      BA48 – A54466
      BA48 - A51788
      It would be greatly appreciated.

    • Djelibeybi

      Flic Hub API?
      Developers • • Djelibeybi

      1
      1
      Votes
      1
      Posts
      827
      Views

      No one has replied

    • anton.simola

      Flic 2 Web Bluetooth
      Developers • • anton.simola

      2
      0
      Votes
      2
      Posts
      677
      Views

      Emil

      I think Web Bluetooth implementations kind of sucks at this stage because of the following reasons:

      No good scan API. No browsers implement the ability to abort a pending connection. No possibility to "store" a device persistently and later re-connect upon next page reload. Some platforms were very bad at either having multiple pending connections or pending connections that were long-outstanding.

      Other than that, it should work fine.

    • paul 0

      Supporting both Flic 1 and Flic 2 in the same app
      Developers • • paul 0

      3
      1
      Votes
      3
      Posts
      903
      Views

      paul 0

      Thanks Emil for the quick reply and the clarification.

      That makes sense, just wanted to make sure I wasn't missing anything.

    • bb_jack123

      Raspberry Pi 3 - Linux - Flic Integration
      Developers • • bb_jack123

      3
      0
      Votes
      3
      Posts
      1649
      Views

      damien_roux

      now: https://github.com/50ButtonsEach/fliclib-linux-hci I think

    • anton

      The Flic 2 open Protocol Specification is released!
      Developers • • anton

      1
      0
      Votes
      1
      Posts
      651
      Views

      No one has replied

    • sxdavies

      Can you change the Internet Request Integration to support x-callback-url not just http???
      Developers • • sxdavies

      2
      0
      Votes
      2
      Posts
      510
      Views

      anton

      Correct me if I'm wrong, but I seem to recall that if an app wish to communicate with another app using the x-callback-url scheme, then that app needs to be in the foreground in order to send the request? If so, then it would unfortunately defeat the purpose of a button.

      But please correct me if I'm wrong.

    • info 6

      New SDK
      Developers • • info 6

      6
      0
      Votes
      6
      Posts
      1762
      Views

      Emil

      @little_master They have already been released at https://github.com/50ButtonsEach (Android, iOS, Linux currently).

    • cindy

      HttpS doesn't seem to work
      Developers • • cindy

      2
      0
      Votes
      2
      Posts
      530
      Views

      Emil

      Yes it's possible. If you actually get a status code such as 404 then it was the server that responded with the error code 404. Maybe you have the wrong url?

    • ngvukieutrinh

      Flic 1 starter kit
      Developers • • ngvukieutrinh

      1
      0
      Votes
      1
      Posts
      498
      Views

      No one has replied

    • ngvukieutrinh

      Programming Flic app vs Filemaker solution
      Developers • • ngvukieutrinh

      3
      0
      Votes
      3
      Posts
      679
      Views

      ngvukieutrinh

      In my case it is Windows.
      Do we have Flic app for windows?