Skip to content

Commit

Permalink
Commit of version 1.0.3 - Please see CHANGELOG.md for further informa…
Browse files Browse the repository at this point in the history
…tion.
  • Loading branch information
AntonMeier committed Feb 10, 2020
1 parent 2277fac commit 38f9f46
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 2 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@

This file documents the changes between different build versions of the `flic2lib.framework`

## flic2lib-ios 1.0.3

### Minor Changes

* Changed the bluetooth connection parameters in order to achieve lower click latency on events that occur while the Flic is connected. This should not affect the Flic battery life.
* Added a property `isScanning` to FLICManager.
* Add callback `button:didUpdateNickname:` to FLICButton to let the app know when the nickname has been updated.
* Add callback `button:didUpdateBatteryVoltage:` to FLICButton to let the app know when the battryVoltage has been updated.

### Bug Fixes

* Fixed a bug that could cause the `scanForButtonsWithStateChangeHandler:completion:` to end up in an infinite loop if `stopScan` was called from within the completion handler.
* Changed the way that the lib syncs the nickname between different applications.

## flic2lib-ios 1.0.2

### Major Changes
Expand Down
27 changes: 27 additions & 0 deletions flic2lib.framework/Headers/FLICButton.h
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,33 @@ NS_ASSUME_NONNULL_BEGIN
*/
- (void)button:(FLICButton *)button didUnpairWithError:(NSError * _Nullable)error;

/*!
* @method button:didUpdateBatteryVoltage:
*
* @param button The FLICButton instance that the event originated from.
* @param voltage Float representation of the latest battery voltage sample.
*
* @discussion This callback will be sent once the Flic button updates its battery voltage with a new value. Typically this will occurs a few seconds
* after the button connects. If you show a battery indicator in you app, then this would be a good place to refresh your UI. Please
* see the description for the batteryVoltage property for more information.
*
*/
- (void)button:(FLICButton *)button didUpdateBatteryVoltage:(float)voltage;

/*!
* @method button:didUpdateNickname:
*
* @param button The FLICButton instance that the event originated from.
* @param nickname The new nickname that was sent from the Flic.
*
* @discussion If the nickname is updated by another app (including the official Flic app), then you will get this callback letting you know that the
* name has changed. This may either be in real time (if multiple apps are connected at the same time), or a deayed event that
* occurs after the button connects (if the nickname was changed while your app was not active). If your app displays this nickname,
* then this would be a good place to refresh your UI.
*
*/
- (void)button:(FLICButton *)button didUpdateNickname:(NSString *)nickname;

@end

NS_ASSUME_NONNULL_END
2 changes: 1 addition & 1 deletion flic2lib.framework/Headers/FLICEnums.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ typedef NS_ENUM(NSInteger, FLICManagerState)
*/
FLICManagerStateUnknown = 0,
/**
* The bluetooth connection with the system service was momentaryly lost, update imminent.
* The bluetooth connection with the system service was momentarily lost, update imminent.
*/
FLICManagerStateResetting,
/**
Expand Down
10 changes: 9 additions & 1 deletion flic2lib.framework/Headers/FLICManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ NS_ASSUME_NONNULL_BEGIN
*/
@property(readonly) FLICManagerState state;

/*!
* @property scanning
*
* @discussion Let's you know if a scan is currently running or not. Reading this value will not affect a scan.
*
*/
@property(nonatomic, readonly) BOOL isScanning;

/*!
* @method sharedManager
*
Expand Down Expand Up @@ -96,7 +104,7 @@ NS_ASSUME_NONNULL_BEGIN
*
* @discussion This will delete this button from the manager. After a successful call to this method you will no longer be able to communicate with the associated Flic button unless you
* pair it again using the scanForButtonsWithStateChangeHandler:completionHandler:. On completion, the button will no longer be included in the manager's buttons array.
* After a successfull call to this method, you should discard of any references to that particular Flic button object. If you try to forget a button that is already forgotton, then
* After a successful call to this method, you should discard of any references to that particular Flic button object. If you try to forget a button that is already forgotten, then
* you will get an error with the FLICErrorAlreadyForgotten code.
*
*/
Expand Down
Binary file modified flic2lib.framework/Info.plist
Binary file not shown.
Binary file modified flic2lib.framework/flic2lib
Binary file not shown.

0 comments on commit 38f9f46

Please sign in to comment.