Coder Social home page Coder Social logo

Comments (2)

sensboston avatar sensboston commented on August 31, 2024

@UCSIG, I'm very busy these times with daily job and new, exciting homebrew project. So, be my guest, add changes and issue a PR - I'll be glad to merge (technically it's really simple).

from bleconsole.

UCSIG avatar UCSIG commented on August 31, 2024

Okay, I'll give it a try in the coming days!

What do you think could be the best way to distinguish a ble device name from a ble address using the open command?

To distinguish between a ble device name and the position in the discovered devices list a '#' character is used.
One way could be to just check whether the ':' is found at the right indices in the string, it should be at index [2, 5, 8, 11, 14], using the format xx:xx:xx:xx:xx:xx and to check that the string contains only valid hex characters 0-9 and A-F.
What do you think?

from bleconsole.

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.