Skip to content

Commit

Permalink
Merge pull request #594 from joaoc/master
Browse files Browse the repository at this point in the history
FIX: BLESecurity.h -> BLESecurityCallbacks.
  • Loading branch information
nkolban committed Jul 10, 2018
2 parents c224f3c + d6ef149 commit 8980fb1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cpp_utils/BLESecurity.h
Expand Up @@ -51,20 +51,20 @@ class BLESecurityCallbacks {
* It requires that our device is capable to display this code to end user
* @param
*/
virtual void onPassKeyNotify(uint32_t pass_key);
virtual void onPassKeyNotify(uint32_t pass_key) = 0;

/**
* @brief Here we can make decision if we want to let negotiate authorization with peer device or not
* return Return true if we accept this peer device request
*/

virtual bool onSecurityRequest();
virtual bool onSecurityRequest() = 0 ;
/**
* Provide us information when authentication process is completed
*/
virtual void onAuthenticationComplete(esp_ble_auth_cmpl_t);
virtual void onAuthenticationComplete(esp_ble_auth_cmpl_t) = 0;

virtual bool onConfirmPIN(uint32_t pin);
virtual bool onConfirmPIN(uint32_t pin) = 0;
}; // BLESecurityCallbacks

#endif // CONFIG_BT_ENABLED
Expand Down

0 comments on commit 8980fb1

Please sign in to comment.