Skip to content

Commit

Permalink
Add getApConnectionState
Browse files Browse the repository at this point in the history
Refers to Issue prampec#271 prampec#271 (comment) and allows to check if a user is already connected to the AP to prevent powering off.
  • Loading branch information
jajberni authored Nov 9, 2022
1 parent 7128981 commit e6c5bb2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/IotWebConf.h
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,11 @@ class IotWebConf
* Return the current state.
*/
NetworkState getState() { return this->_state; };

/**
* Return the AP connection state to check if there are some user connected
*/
ApConnectionState getApConnectionState () { return this->_apConnectionState; };

/**
* This method can be used to set the AP timeout directly without modifying the apTimeoutParameter.
Expand Down

0 comments on commit e6c5bb2

Please sign in to comment.