Coder Social home page Coder Social logo

Comments (9)

pauldemarco avatar pauldemarco commented on July 23, 2024 2

That's the idea 👍

For each step you would need the following:

  1. Scan for nearby devices. FlutterBlue.instance.scan
  2. Connect to device. FlutterBlue.instance.connect
  3. Discover services on device. device.discoverServices
  4. Transfer data by reading and writing to a service's characteristic. device.readCharacteristic device.writeCharacteristic

from flutter_blue.

pauldemarco avatar pauldemarco commented on July 23, 2024

Hi @eugenelet,

Are you referring to Bluetooth classic's serial port profile (SPP)? If so, there really isn't a BLE equivalent. Depending on your data rate needs, you could create a Bluetooth Low Energy service that offers similar functionality, which then could be handled by this library.

from flutter_blue.

eugenelet avatar eugenelet commented on July 23, 2024

Hi @pauldemarco

Yeah that's what I need. Where can I start with that using this library? As from the functions listens in this plugin, there's readCharacteristic, services, readDescriptor, etc. I'm not sure which should I use to implement this function.

from flutter_blue.

pauldemarco avatar pauldemarco commented on July 23, 2024

@eugenelet I would run through some basics of Bluetooth Low Energy, and see if an official service has what you need.

In a nutshell, you could use this library to:

  1. Scan for nearby devices.
  2. Connect to device.
  3. Discover services on device.
  4. Transfer data by reading and writing to a service's characteristic.

from flutter_blue.

eugenelet avatar eugenelet commented on July 23, 2024

@pauldemarco Thanks for helping out! It's been days for me looking around for a SPP solution using Flutter. So the basic idea is I've to use readCharacteristic and writeCharacteristic provided by this plugin to implement this function?

from flutter_blue.

eugenelet avatar eugenelet commented on July 23, 2024

Thanks for the info. I'll try it out and let you know if it works. 😀

from flutter_blue.

pauldemarco avatar pauldemarco commented on July 23, 2024

Sounds good. I'll close this for now, if you run into issues we can reopen.

from flutter_blue.

faridingithub avatar faridingithub commented on July 23, 2024

Hi
I am running into a similar issue. I am trying to connect to my laptop. The example code can find the laptop (although it does not show the assigned name and just shows blank.)

When I try to connect it does not even when I increased the timeout.

Thanks for the help.

from flutter_blue.

ayushin avatar ayushin commented on July 23, 2024

Anybody else is working on this?

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.