Fixed AP mode connect/disconnect monitoring and added an example sketch to illustrate the feature.