  *
  * @param event WiFiEventStationModeGotIP Event
  */
-void onSTAGotIP(WiFiEventStationModeGotIP event)
+void onSTAGotIP(const WiFiEventStationModeGotIP &event)
 {
 
 #ifdef DEBUG

 *
 * @param event WiFiEventStationModeDisconnected Event
 */
void onSTADisconnected(WiFiEventStationModeDisconnected event)
{
  DEBUGLOG("WiFi connection (%s) dropped.\n", event.ssid.c_str());
  DEBUGLOG("Reason: %d\n", event.reason);

 *
 * @param event WiFiEventSoftAPModeStationConnected Event
 */
void onAPConnected(const WiFiEventSoftAPModeStationConnected &event)
{
  DEBUGLOG("[WIFI] SSID        : %s\n", cfg.hostname);
  DEBUGLOG("[WIFI] Password    : %s\n", ADMIN_PASSWORD);
