Coder Social home page Coder Social logo

swift-lightblue's Introduction

Swift-LightBlue-logo.png

Swift-LightBlue is the tool written in swift for the developers to know the most features of CoreBluetooth. It also can help developers who design the bluetooth to debug hardware. On the other hand, it also can simulate a bluetooth hardware to use. It is built on the top version of the CoreBluetooth. This project is heavily inspired by the popular LightBlue. Most of features will be implemented in this tool. If some quetions accurs on you about interfacing with Bluetooth, maybe this tool can help you find some questions. The tool is still in development, if you occurs some quetions, please issue me.

Finally, if you like this project, please star it.

Features(Developing)

The LightBlue has two mode, Central and Peripheral.

The device as central:

  • Scan the nearby peripherals and show some basic information of the peripherals.
  • Obtain the advertisement data.
  • Connect the peripheral and interrogate it.
  • Discover all the services and characteristics.
  • Decode the characteristic and service properties.
  • Read the data from the peripheral.
  • Write the data to the peripheral.
  • Monitor some actions from the CoreBluetooth.

The device as peripheral:

  • Add new virtual peripheral which is standard service in Bluetooth Developer Portal.
  • Manage service for the virtual peripheral.
  • Clone the connected peripheral.
  • Simulate the bluetooth hardware work process.

Common:

  • The log of the central or peripheral events.
  • Share the app to others.

Requirements

  • iOS 9.0+
  • Xcode 7.0 or above
  • Bluetooth 4.0

Future of Swift-Bluetooth

Presently, this project is developing for iOS, but I want to abstract a convenience bluetooth module for all platforms. Then I will send the module to the Cocoapods. Finally, I will add more functions for the bluetooth developer to debug the program not only for the software, but also for the hardware. So if you have ideas please contact me.

Contact

Follow and contact me on Sina Weibo or My Blog. If you find an issue, just open a ticket on it. Pull requests are warmly welcome as well.

License

The MIT License (MIT)

Copyright (c) 2016 Pluto Y

Permission is Pluto Y granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

swift-lightblue's People

Contributors

pluto-y avatar steffenmauch avatar

Watchers

James Cloos avatar  avatar

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.