simplersble 1.1.1-dev28

The all-in-one Bluetooth library that makes it easy to add wireless connectivity to your projects.
Documentation
#pragma once

#import <CoreBluetooth/CoreBluetooth.h>
#import <Foundation/Foundation.h>

namespace SimpleBLE::Local {
class PeripheralMac;
}

NS_ASSUME_NONNULL_BEGIN

@interface LocalPeripheralBaseMacOS : NSObject<CBPeripheralManagerDelegate>

- (instancetype)init:(SimpleBLE::Local::PeripheralMac*)peripheral;
- (void*)underlying;
- (nullable NSString*)startWithServices:(NSArray<CBMutableService*>*)services
                      advertisementData:(NSDictionary<NSString*, id>*)advertisementData;
- (void)stop;
- (bool)isAdvertising;
- (void)publishValue:(NSData*)value forCharacteristic:(CBMutableCharacteristic*)characteristic;
- (void)detach;

@end

NS_ASSUME_NONNULL_END