// // Waydio.m // waydio_comms_demo // // Created by Tim Redfern on 09/09/2013. // // #import "Waydio.h" @implementation Waydio @synthesize delegate; - (id)initWithPeripheral:(CBPeripheral*)peripheral { return self; } /** An alternate initializer for this class which sets the input and output buffer sizes. Use this if the default buffer sizes are not adequate @param peripheral The CBPeripheral object to be used @param in_size The fixed input buffer size to use @param out_size The fixed output buffer size to use @return self @note Changes peripheral.delegate to self. If peripheral.delegate is set another object, initWithPeripheral and open will have to be called again to reinitialize. @note The default input and output buffer sizes are 1024 bytes */ - (id)initWithPeripheral:(CBPeripheral*)peripheral InputBufferSize:(NSUInteger)in_size OutputBufferSize:(NSUInteger)out_size { // return self; } + (CBUUID *) brspServiceUUID{ return [CBUUID UUIDWithString:BRSP_SERVICE_UUID]; } /** Opens a Waydio connection. (Prepares peipheral for using the Waydio service, characteristics, and notifications) */ - (void)open { //[[self delegate] OpenStatusChanged:YES]; //[NSTimer scheduledTimerWithTimeInterval:5.0 target:self // selector:@selector(processComplete) userInfo:nil repeats:YES]; }; /** Closes a Waydio connection. (Turns off notifications, etc) */ - (void)close { } @end