Giter Site home page Giter Site logo

p3bble's Introduction

P3bble

P3bble is a framework for connecting to Pebble SmartWatches from Windows Phone 8.

Donate

Donate with Bitcoin

Donate DogeCoin: DPVz6RSAJrXZqTF4sGXpS1dqwvU36hSaAQ

Getting Started:

  • Install P3bble from Nuget or clone this repo and build from source.
  • Add ID_CAP_PROXIMITY to WMAppManifest.xml to allow connections from your app.
  • Detect and connect to the first Pebble found:

To use the library with Windows Phone 8.1 and WinRT (WinRT not finished currently), you need to add this

    <m2:DeviceCapability Name="bluetooth.rfcomm">
      <m2:Device Id="any">
        <m2:Function Type="serviceId:00000000-deca-fade-deca-deafdecacaff"/>
      </m2:Device>
    </m2:DeviceCapability>

in your Package.appxmanifest beetween the "Capabilities" Tag.

var pebbles = await P3bble.Pebble.DetectPebbles();
if (pebbles != null && pebbles.Count > 0)
{
    bool connected = await pebbles[0].ConnectAsync();
    if (connected)
    {
        MessageBox.Show("connected to " + pebbles[0].DisplayName);
    }
    else
    {
        MessageBox.Show("could not connect");
    }
}

Version 2.2 features:

  • Added support for Windows Phone Silverlight 8.1
  • Added support for Windows Phone 8.1

Version 2.0 features:

  • Get and Set Time
  • List installed apps
  • Remove app by index
  • Install app from PBW
  • Launch app
  • Install firmware
  • Music control works from foreground app
  • Refactored methods to be async/await instead of using events
  • Patched FindPebbles to only include items starting "Pebble"
  • Added interface for P3bble to allow mocking
  • Changed from WebClient to HttpClient to make code more portable
  • Changed from SharpGISto sharpcompress to make code more portable

Version 2.0 features were added by Steve Robbins - but they were only possible because of the work that Patrik did originally as well as the Python reverse engineering work.

TODO: WinRT not working yet - unable to connect to Bluetooth paired devices - any help getting this working appreciated!

Version 1.0

Version 1.0 created by Patrik Pfaffenbauer - see https://github.com/p3root/P3bble

License

P3bble is released under the 3-clause license ("New BSD License" or "Modified BSD License") - see https://raw.githubusercontent.com/p3root/P3bble/master/LICENSE.txt

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.