
#import <Foundation/Foundation.h>
#import "Tag.h"


/*!
 @protocol BTEvtDelegate
 @abstract you should implement any of these event functions if you want to deal with.
 */
@protocol BTEvtDelegate <NSObject>

@optional -(void) onTagScaned: (NSString*)tagMac tag:(Tag*)tag advertisementData:(NSDictionary *)advertisementData;
@optional -(void) onTagNotScaned: (NSString*)tagMac;
@optional -(void) onTagConnected: (NSString*)tagMac;
@optional -(void) onTagDisconnected: (NSString*)tagMac;
/*!
 @abstract triggered if SDK moduel received data from tag device.
 */
@optional -(void) onTagData: (NSString*)tagMac strData:(NSString*) strData byteData:(NSData*)byteData;
@optional -(void) onTagRssiChanged: (NSString*)tagMac rssi:(int)rssi;


/*!
 @abstract triggered if tag button is pressed.
 */
@optional -(void) onTagData_buttonPressed:(NSString*) tagMac;
/*!
 @abstract triggered if tag lost connection and can not be scanned any more.
 */
@optional -(void) onTagLost:(NSString*)tagMac;

@end
