Giter VIP home page Giter VIP logo

bluetooth-demo-app's Introduction

Bluetooth-Demo-App

The project contains 2 apps: Sender and Receiver.

Both work in 2 mode: iBeacon and Bluetooth LE (there's a switch).

Sender

In iBeacon mode, Sender app sends an iBeacon signal, changing its minor value between 0 and 1 every 10 seconds.

In BLE mode, Sender app displays a service that has a single value โ€“ the same, either 0 or 1, changing it every 10 seconds.

Receiver

In iBeacon mode, Receiver watches the iBeacon signal end every 4 second, if conditions met, sends an HTTP request. Conditions are: beacon minor value is 1 and the distance to the beacon is 0.5m or less.

In BLE mode it connects to the sender every 4 seconds, checks its value and, if it is 1, sends the same HTTP request.

When it receives a response to the HTTP request, it displays an animation and, in BLE mode, sends response to the Sender.

When you minimize the app and then open it again, it displays a blue splash screen for 5 seconds before restoring bluetooth monitoring.

How to run

There are two schemes in the project, Sender and Receiver. The apps only work with each other. Just run them at the same time and enjoy.

Both apps have a switch between iBeacon mode and BLE mode.

Video

Video link: https://youtu.be/A3yp2jNX3SU

bluetooth-demo-app's People

Contributors

pkazantsev avatar

Watchers

 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.