Code Monkey home page Code Monkey logo

demoperipheral's Introduction

DemoPeripheral

Turn your ARM Linux device (e.g. BeagleBone, Raspberry Pi, Orange Pi) into an iBeacon and Bluetooth Low Energy peripheral with Swift. Includes iOS app for interacting with the peripheral via Bluetooth.

Setup (iOS)

Install Carthage dependencies

carthage update

Setup (Linux)

  1. Install Swift 3.0 for ARM Linux, make sure to use 2016-09-26 build.
  2. Install BluetoothLinux dependencies.
  3. Clone and Build (will generate errors)
git clone https://github.com/colemancda/DemoPeripheral
cd DemoPeripheral
swift build
  1. Patch code, in Packages/CStatfs-1.0.0/module.modulemap replace x86_64-linux-gnu with arm-linux-gnueabihf
  2. Build and run
swift build
sudo .build/debug/Peripheral

Interaction

You should see the following in your console

Starting Peripheral Daemon...
Peripheral: Started GATT Server
Initialized Peripheral 0bd6311b-d0c9-425c-928b-89cc5bc0170c

You can also explore with LightBlue.

demoperipheral's People

Contributors

adagio avatar colemancda 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.