Coder Social home page Coder Social logo

Comments (17)

AymenXD avatar AymenXD commented on June 24, 2024 1

any fix guys? this is an example:

Android (works fine) :
android

iOS:
ios
same here :

from flutter_blue.

jack4git avatar jack4git commented on June 24, 2024

Confirming this behavior. The information is key, especially serviceData, otherwise you have to connect to devices to determine what services they support.

from flutter_blue.

pauldemarco avatar pauldemarco commented on June 24, 2024

Looking into this now.

Not good news, as this is working on my end (using iPhone 8 plus and nrf52 dev board with nRF Connect for Desktop).

After setting up the advertisement data in nRF Connect, I'm seeing all of the values on Dart side.

Have you confirmed this information is showing up in other Bluetooth apps (nRF Connect for iOS)?

from flutter_blue.

jack4git avatar jack4git commented on June 24, 2024

Paul, I’m also seeing some devices with advertisement data. Guessing it’s showing up if it’s there, but haven’t got around to changing the settings on one of my BLE devices yet to confirm.

from flutter_blue.

jack4git avatar jack4git commented on June 24, 2024

Hey Paul,

I am now able to confirm that there's advertising packet data that I can't get to from flutter_blue.

My BLE device is include a Service UUID in its advertising packet, which will allow my app to know that a given service is available BEFORE connecting. I'm guessing this should be coming through in ScanResult.advertisementData.serviceData ...

I can see this data coming from my device using various apps such as Nordic's nRF Connect, where it looks like this:
img_0569
When I access this and various other properties of AdvertisementData for my device in flutter_blue, all are empty. When I look at the same info for "all devices in range" I see just one device out of ~20 that shows a non-empty value for serviceData. I am able to see localName for my device. (I don't see other values but those aren't being sent).
I can provide more info as needed.

from flutter_blue.

jack4git avatar jack4git commented on June 24, 2024

Paul, following up on this one --

from flutter_blue.

francisraj avatar francisraj commented on June 24, 2024

hi,
i'm trying to create an android and ios app in flutter for ble operations, i need to take all bytes of advertisement data while scanning time and i need to make a condition check based on the advertisement bytes.
i can get all byte using NRF CONNECT (advertisement packet 1 and 2 total is 62 byte data),
how to get from this?

nrf scan result

could you please help me,..

from flutter_blue.

hbsis-eduardo avatar hbsis-eduardo commented on June 24, 2024

This error is also happening on Android. I'm using the example app to run on API 22.
I just downloaded the example and ran it.

from flutter_blue.

pauldemarco avatar pauldemarco commented on June 24, 2024

@jack4git Sorry for the delay. If you're still in need of a fix, please try out the latest version 0.4.0 on pub and let me know how it goes.

Thanks!

from flutter_blue.

francisraj avatar francisraj commented on June 24, 2024

from flutter_blue.

pauldemarco avatar pauldemarco commented on June 24, 2024

@ryanhanks Just confirming, is this issue fixed for you?

from flutter_blue.

GauravPatni avatar GauravPatni commented on June 24, 2024

Paul,
I am also facing same issue . After scan Service data is null . ( flutter_blue , Master -
Latest commit 6f6fa30 )

Device : Mi Note 4 LTE , Android version 4.4.4

Thanks,
Gaurav

from flutter_blue.

robomike avatar robomike commented on June 24, 2024

Hi, I have the same issue. using the latest build. Any updates? Samsung galaxy s with andriod 9

from flutter_blue.

PeteSwad avatar PeteSwad commented on June 24, 2024

Hi

I have found that the ScanResult serviceData is overwritten by the devices scan response service data if it contains values.

Ideally ScanResult AdvertisingData would return both the ScanResult and ScanResponse service data in separate Lists. I guess this depends on how the OS's handle the Scan Response data though.

I hope this helps someone

Pete

from flutter_blue.

novas1r1 avatar novas1r1 commented on June 24, 2024

Hi,
having the same issue but on Android. ServiceData and manufacturerData are empty for one of 3 different devices.
Using Pixel 2 with Android 10 and Flutter 1.17.1

from flutter_blue.

recvec avatar recvec commented on June 24, 2024

having the same issue but on Android 4.4.4, nRF Connect shows this data

from flutter_blue.

Yinten avatar Yinten commented on June 24, 2024

Anyone find anything out on thiis?

from flutter_blue.

Related Issues (20)

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.