iDevices
Forum Documentation
Buy Now

Navigation

    Sweetblue Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Groups
    1. Home
    2. Recent
    • All categories
    • Announcements
    • General Discussion
    • Blogs
    • Sample Apps
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics

    • Android 12
      General Discussion • • AlejandroHCruz

      2
      0
      Votes
      2
      Posts
      45
      Views

      R

      @alejandrohcruz said in Android 12: https://developer.android.com/about/versions/12/non-sdk-12 For new android versions, we always run the library through tests, to make sure the library is compatible. At a quick glance, I only see one method we use that will be blocked (factoryReset). While it'd be nice to keep that method, I don't think it's a huge loss (and I was never sure it really made any difference than just turning the ble radio off/on).
    • Disconnection issues while bonded on Huawei & Honor devices
      General Discussion • • AlejandroHCruz

      12
      0
      Votes
      12
      Posts
      2275
      Views

      C

      @ryanbis the fix to this connection loop went out with 3.2.3 right? I had implemented the methods in DefaultReconnectionFilter , to workaround the issue described here https://forum.sweetblue.io/topic/12/explicit-disconnect-triggers-automatic-reconnect/15 Now the workaround fails. How do we simply tell Sweetblue -- hey, disconnect now and do not retry to connect until we call connect() again?
    • J

      API KEY unavailable
      General Discussion • • jastrada

      1
      0
      Votes
      1
      Posts
      141
      Views

      No one has replied

    • R

      SweetBlue 3.2.5 Release
      Announcements • • ryanbis

      2
      1
      Votes
      2
      Posts
      369
      Views

      Thanks a lot for the fixes and documentation! @ryanbis
    • How does ConnectionLostPlease.persistIf work compared to autoconnect?
      General Discussion • • AlejandroHCruz

      7
      0
      Votes
      7
      Posts
      647
      Views

      @ryanbis Ah! Alright, everything's clear now. That was the confusion
    • B

      Background scan times out on S10 (maybe other Samsungs)
      General Discussion • • blawlor

      3
      0
      Votes
      3
      Posts
      784
      Views

      @blawlor Funny enough, I'm seeing this behavior despite using a foreground service to scan. So in theory I shouldn't need the background location permission. Have you seen something like that too?
    • R

      SweetBlue 3.2.4 Release
      Announcements • • ryanbis

      1
      0
      Votes
      1
      Posts
      283
      Views

      No one has replied

    • Foretting a device's characteristics
      General Discussion • • AlejandroHCruz

      6
      0
      Votes
      6
      Posts
      478
      Views

      @ryanbis Perfect! Thanks a lot. This is great.
    • Bonding with autoBondFixes set to true deletes all Bluetooth devices from Sony phones
      General Discussion • • AlejandroHCruz

      14
      0
      Votes
      14
      Posts
      1466
      Views

      R

      @alejandrohcruz Set autoBondFixes to false.
    • R

      SweetBlue 3.2.3 Release
      Announcements • • ryanbis

      3
      1
      Votes
      3
      Posts
      569
      Views

      R

      You're right, thanks for pointing that out. It's been fixed now.
    • E

      App crashing when SweetBlue dependency is added
      General Discussion • • EarlyWild

      2
      0
      Votes
      2
      Posts
      645
      Views

      E

      Issue solved... make sure to add Java 8 compatibility to project. compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 }
    • M

      Cannot get read/notify when connected to more than two devices.
      General Discussion • • mcgkc55

      3
      0
      Votes
      3
      Posts
      718
      Views

      M

      Thanks for getting back with me. It appears I get the same results using the Toolbox app, but did notice something interesting. My flow using Toolbox app after having connected to two devices Turn device 1 on. Wait for button to turn green and say "Disconnect". Usually takes about 5-10 seconds I'm able to get notify values Turn device off. Wait for button to turn white and say "Connect" ========= Turn device 2 on. Wait for button to turn green and say "Disconnect". Usually takes about 5-10 seconds. I'm able to get notify values Turn device off. Wait for button to turn white and say "Connect" This is pretty consistent. I can do this multiple times with the same result, but sometimes when I turn a device on, it's button will not turn green even after waiting for over a minute. But as soon as I turn on another device (two devices are now on), both devices will connect and buttons will turn green. When a third device is added, the only way I can get a device to connect and turn green, is to turn on another device too. This is pretty consistent with results I'm seeing with Sweetblue in our app. We try to connect to devices use a ReconnectFilter val deviceReconnectFilter = object : DeviceReconnectFilter { override fun onConnectFailed(connectFailEvent: DeviceReconnectFilter.ConnectFailEvent): ConnectFailPlease { return ConnectFailPlease.retry() } override fun onConnectionLost(connectionLostEvent: ConnectionLostEvent): ConnectionLostPlease { return ConnectionLostPlease.retryIn(Interval.secs(3.0) ) } } So our app is continuously trying to connect to devices it knows about. When device is turned on ConnectionEvent is triggered and we start getting data. When the device is turned off, onConnectionLost is fired and we start continuously trying to reconnect. Is there another way we should be trying to handle continuously being connected to a device?
    • M

      multiple calls per second for onConnectionLost of DeviceReconnectFilter
      General Discussion • • mcgkc55

      2
      0
      Votes
      2
      Posts
      558
      Views

      R

      No, it's not supposed to fire that much. Looks like you found a bug, thanks for pointing it out. We'll make sure to get this fixed for the next release.
    • R

      Trial Key not working in Android library package
      General Discussion • • rhilse

      4
      0
      Votes
      4
      Posts
      968
      Views

      R

      Managed it to make it work. What you need is the application id, not the package name. Very confusing.
    • Best practices for saving battery life
      General Discussion • • AlejandroHCruz

      4
      0
      Votes
      4
      Posts
      1014
      Views

      R

      To be honest, it's been a while since I've dug deep into the numbers for connection interval. I would think 100ms would be good, just make sure to test like crazy :).
    • Interacting with device that's already connected to the OS
      General Discussion • • AlejandroHCruz

      10
      0
      Votes
      10
      Posts
      3119
      Views

      @caeduk interesting, I didn't know that you can do that if you scan without filters. We can probably look into their source code and find more hints i.e. see under which conditions they trigger that notification to ask the user if they want to debug the connection
    • E

      Are there any sample projects that besides the SweetBlue v2 toolbox found on github?
      General Discussion • • Eheartlyanderson

      3
      1
      Votes
      3
      Posts
      1402
      Views

      V

      There is nothing in sample apps. Any possibility of it in being released in future ?.
    • R

      SweetBlue 3.2.2 Release
      Announcements • • ryanbis

      1
      0
      Votes
      1
      Posts
      980
      Views

      No one has replied

    • Explicit disconnect triggers automatic reconnect?
      General Discussion • • AlejandroHCruz

      15
      0
      Votes
      15
      Posts
      4737
      Views

      R

      Undiscover will disconnect, but will not explicitly unbond.
    • R

      Email verification
      Announcements • • ryanbis

      1
      0
      Votes
      1
      Posts
      798
      Views

      No one has replied