This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // AsyncTask.swift | |
| // | |
| // Created by Douglas Nassif Roma Junior on 08/06/15. | |
| // Copyright (c) 2015 Douglas Nassif Roma Junior. All rights reserved. | |
| // | |
| import Foundation | |
| class AsyncTask<Params, Progress, Result> : NSObject { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Foundation | |
| import CoreBluetooth | |
| class BluetoothWriter : NSObject { | |
| private weak var peripheral: CBPeripheral!; | |
| private weak var characteristic: CBCharacteristic!; | |
| init(peripheral : CBPeripheral, characteristic:CBCharacteristic) { | |
| self.peripheral = peripheral; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import <Foundation/Foundation.h> | |
| #import <CoreBluetooth/CoreBluetooth.h> | |
| @interface BluetoothWriter : NSObject | |
| -(id) initWithPeripheral:(CBPeripheral *) peripheral characteristic:(CBCharacteristic *)characteristic; | |
| - (void) writeString:(NSString *) value; | |
| - (void) writeData:(NSData *) value; | |
| -(void) writeColorWithRed:(int)red withGreen:(int)green withBlue:(int)blue; |
NewerOlder