BlackBoard and comprehensive iOS class [iOS]

FranciscoSerradillaFranciscoSerradilla Posts: 19Member
edited June 2013 in Developer Discussion
Hi pebblers:

I'm working in a generic blackboard app based on weather app from official examples. The idea is to have this app installed in pebble and receive messages from an iOS class that encapsulates all the code to open session and control AppMessages system, making it easy for all iOS developers to import it and send notifications to the watch.

Is anybody interested in such thing?

I've finished a proof of concept and now I will refactor the code and improve some things, and in a couple of days I'll publish source and binary code of blackboard watch app and source code from iOS. The basic idea is facilitate to iOS developers the process of sending text messages and vibration to the watch, without any compilation and developing with pebble code, a process a bit more complex.

Once installed blackboard into the watch, the class can put blackboard in the front, throw out, and display a text message and an icon selected from an icon set.
Post edited by FranciscoSerradilla on
·

Comments

  • FranciscoSerradillaFranciscoSerradilla Posts: 19Member
    edited July 2013
    [iOS] Well, I've finished my proof of concept for iOS programmers.

    I implemented a pebble app named "blackboard", derived from the code of Weather and the code of feature_app_message_send. You can install blackboard.pbw directly or compile from given source if you want.

    Once installed, you could import Talk2Pebble.h and Talk2Pebble.m to your own iOS project and send and receive messages to / from your iPhone.

    You have this set of tools in .h:

    @protocol BlackBoardDelegate <NSObject>
    - (void) buttonPressed:(int)code; // capture pebble button pressed

    @interface Talk2Pebble : NSObject

    @property (strong, nonatomic) id delegate;

    - (void)openBlackBoard;  // put pebble blackboard in foreground
    - (void)closeBlackBoard; // put pebble blackboard in background
    - (void)showMessage:(NSString*)message; // show a message in blackboard
    - (void)showMessage:(NSString*)message iconCode:(int)iconCode; // show a message in blackboard
    - (void)terminate; // terminates communication session and remove handlers


    I also provide to you an iOS demo project called "BlackBoardDemo". If you are an iOS developer you can compile it to your phone and try all the pieces together. The advantage is that it's not necessary to install and compile the pebble Watch Face SDK if you don't want, a bit complex process, and you can concentrate in the iOS developing process.

    You can download the code from: **please see next message**

    This is a preliminary version, completely functional, but the community could improve it.

    Post edited by FranciscoSerradilla on
    ·
  • FranciscoSerradillaFranciscoSerradilla Posts: 19Member
    edited July 2013
    I just update BlackBoard to 1.1 version.

    What's new:

    * Now 2 line messages
    * PebbleKit included in the iOS project and correctly linked (Demo must compile out of the box, now)
    * If BlackBoard not in foreground, open it
    * Some minor bugs fixed

    Please note you must update blackboard.pbw in the watch in order to use the new library.


    Post edited by FranciscoSerradilla on
    ·
  • FranciscoSerradillaFranciscoSerradilla Posts: 19Member
    edited July 2013
    Updated Blackboard to 1.2


    Created by Francisco Serradilla
    Universidad Politécnica de Madrid
    ermanitu@yahoo.es

    blackboard is and app to pebble watch that servers as screen for messages sent from iOS class Talk2Pebble. To comunicate your iOS app you only need:

    1) Install blackboard in your pebble (I provide a built version if you don't want to compile sources)
    2) Import Talk2Pebble into your proyect
    3) Create an instance of the Talk2Pebble class, and start sending and receiving messages

    v1.2

    What's new:

    - Defined enumeration symbols to icons to display
    - Added 2 new icons: happy and unhappy
    - Removed 2 line messages. Now there is only one message but it can take until 4 lines; you can use \n to separate lines
    - Introduced parameter to select vibrate pattern when sending messages
    - Use of smaller icons, now 50x50, to give more space to text lines
    Post edited by FranciscoSerradilla on
    ·
  • FranciscoSerradillaFranciscoSerradilla Posts: 19Member
    New version of the BlackBoard system:

    Created by Francisco Serradilla
    Universidad Politécnica de Madrid
    ermanitu@yahoo.es

    This software is distributed under the Open Source Definition, which may be found at http://www.opensource.org/osd.html.

    Introduction

    Blackboard is a system for pebble watch that acts as screen for messages sent from iOS, and allow sending signals to iOS when pushing buttons of the watch.

    BlackBoard has 3 components:

    * blackboard, an app for pebble watch (source & .pww)
    * Talk2Pebble, a library to encapsulate communications with blackboard app (source)
    * BlackBoard Demo, a proof of concept using Talk2Pebble (source)

    To communicate your iOS app you only need:

    1) Install blackboard in your pebble (I provide a built version if you don't want to compile sources)
    2) Import Talk2Pebble into your project
    3) Create an instance of the Talk2Pebble class, and start sending and receiving messages


    What's new in v1.3

    - Increased buffer to allow larger messages (up to 64 chars)
    - Improved retrying system to avoid infinite recursion
    - Added verbose / non verbose (default) modes
    - Controls if no pebble present to avoid errors
    - Fixed minor bugs

    Download here:
    ·
  • I've recompiled blackboard to SDK 2.0.

    ·
Sign In or Register to comment.