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

    • J

      API KEY unavailable
      General Discussion • • jastrada

      1
      0
      Votes
      1
      Posts
      90
      Views

      No one has replied

    • R

      SweetBlue 3.2.5 Release
      Announcements • • ryanbis

      2
      1
      Votes
      2
      Posts
      291
      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
      549
      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
      705
      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
      233
      Views

      No one has replied

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

      6
      0
      Votes
      6
      Posts
      395
      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
      1293
      Views

      R

      @alejandrohcruz Set autoBondFixes to false.
    • R

      SweetBlue 3.2.3 Release
      Announcements • • ryanbis

      3
      1
      Votes
      3
      Posts
      493
      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
      590
      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
      650
      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
      516
      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
      905
      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
      931
      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
      3020
      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
      1340
      Views

      V

      There is nothing in sample apps. Any possibility of it in being released in future ?.
    • Disconnection issues while bonded on Huawei & Honor devices
      General Discussion • • AlejandroHCruz

      11
      0
      Votes
      11
      Posts
      2111
      Views

      Thank you for your replies. It is interesting that you got different results than me. On my undersanding, turning off the Bluetooth adapter definitely terminates the connection and thus the device can be used again for further scanning/connection. I've been trying out a bunch of different things. Sometimes, when the device is stuck on this state, I am able to retrieve the device from the regular getDevice(String macAddress) method. And then I can establish a connection, verify the BONDED state, read the standard Device Information Service, and even enable some BleNotify. However, I am not able to negotiate the MTU as the operation fails with a REMOTE_GATT_FAILURE due to “no resources”. I'll activate autoNegotiateMtuOnReconnect and try again tomorrow, maybe you have some magic in there or I'm doing something wrong. Other than that, I think I'll use the getDevices_bonded() function, filter for the device, and unbond it. Then connect again. That seems to work on the Toolbox V3 app and does not retrigger a bonding notification for some reason.
    • R

      SweetBlue 3.2.2 Release
      Announcements • • ryanbis

      1
      0
      Votes
      1
      Posts
      939
      Views

      No one has replied

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

      15
      0
      Votes
      15
      Posts
      4549
      Views

      R

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

      Email verification
      Announcements • • ryanbis

      1
      0
      Votes
      1
      Posts
      753
      Views

      No one has replied

    • R

      SweetBlue 3.2.1 Release
      Announcements • • ryanbis

      1
      0
      Votes
      1
      Posts
      777
      Views

      No one has replied