Latest 0.2
Homepage https://github.com/ezefranca/kit-iot-wearable-ios
License MIT
Platforms ios
Authors

Kit IoT Wearable iOS http://iot.telefonicabeta.com/kit-iot-wearable

Kit IoT Wearable Telefonica VIVO – iOS

Build Status
Badge w/ Version
Badge w/ Platform
wercker status

Biblioteca iOS para conectar via bluetooth com o Kit de Desenvolvimento IoT Wearable.

O kit possui os seguintes sensores:

  • Módulo Bluetooth – (HM-13)
  • Luminosidade
  • Temperatura
  • Acelerômetro
    • eixo x
    • eixo y
    • eixo z
  • LED RGB
  • Buzzer

Mantenha o Sketch Arduino do seu Kit IoT Wearable atualizado

Link – faça o download do sketch e suba no seu Kit Wearable utilizando a IDE do Arduino.

Como utilizar

Via CocoaPods

Para utilizar a bibliteca instale utilizando cocoapods. No seu podfile acrescente:

pod 'kit-iot-wearable-ios'

Exemplo de utilização

No DevicesVC.h temos uma UITableView que exibe os dados de um NSMutableArray de dispositivos bluetooth.
Um exemplo de conexão e envio de dados:

No delegate da UITableView

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath

DevicesVC.m

{
[...]
    ViewController *controller = [self.storyboard instantiateViewControllerWithIdentifier:@"XPTO"];
    controller.iotKit = kitIoT;
    [self.navigationController pushViewController:controller animated:YES];
}

ViewController.m

@interface ViewController ()
@property (strong, nonatomic) IOTArduino *iotKit;
@end

@implementation ViewController
@synthesize iotKit;

//Exemplo, deixar o LED RGB AZUL
- (void)sendToArduino {
    [iotKit sendCommandToArduino:@"#LR0000"];
    [iotKit sendCommandToArduino:@"#LG0000"];
    [iotKit sendCommandToArduino:@"#LB0255"];
}

Documentação do Módulo bluetooth HM-13

Veja a documentação do módulo bluetooth HM-13 – link

Lista de comandos do Wearable

Veja a lista de comandos aqui

Outros Projetos

Biblioteca Python para controlar o Kit-IoT-Wearable através do Intel Galileo Aqui por @renanlino

Lib iOS Swift Aqui

Autor

twitter/ezefranca
ezefranca

Latest podspec

{
    "name": "kit-iot-wearable-ios",
    "version": "0.2",
    "summary": "Kit IoT Wearable Telefonica - iOS  http://iot.telefonicabeta.com/kit-iot-wearable",
    "description": "                   A longer description of kit-iot-wearable-ios in Markdown format.nn                   * Think: Why did you write this? What is the focus? What does it do?n                   * CocoaPods will be using this to generate tags, and improve search results.n                   * Try to keep it short, snappy and to the point.n                   * Finally, don't worry about the indent, CocoaPods strips it!n",
    "homepage": "https://github.com/ezefranca/kit-iot-wearable-ios",
    "license": {
        "type": "MIT"
    },
    "authors": {
        "ezefranca": "[email protected]"
    },
    "social_media_url": "http://twitter.com/ezefranca",
    "platforms": {
        "ios": null
    },
    "source": {
        "git": "https://github.com/ezefranca/kit-iot-wearable-ios.git",
        "tag": "0.2"
    },
    "source_files": "kit-iot-wearable-ios/**/*.{h,m}",
    "exclude_files": "kit-iot-wearable-arduino, kit-iot-example, LICENSE, README.md, FSK-Arduino-iOS.podspec, wercker.yml",
    "requires_arc": false
}

Pin It on Pinterest

Share This