 /**
  * This is a kind of unit test for DEV for now
+ * It contains many of the public methods
+ * 
  */
 #include <WiFiManager.h> // https://github.com/tzapu/WiFiManager
 #include <time.h>

    print_oled("Not Connected",2);
  }
  else if(TEST_CP) {
    // start configportal always
    wm.setConfigPortalTimeout(60);
    wm.startConfigPortal();

void loop() {
  // is configuration portal requested?
  if ( digitalRead(TRIGGER_PIN) == LOW ) {
    delay(100);
    if ( digitalRead(TRIGGER_PIN) == LOW ){
      Serial.println("BUTTON PRESSED");
      wm.setConfigPortalTimeout(140);

      // disable captive portal redirection
      // wm.setCaptivePortalEnable(false);
      
      if (!wm.startConfigPortal("OnDemandAP","12345678")) {
        Serial.println("failed to connect and hit timeout");
        delay(3000);
      }
    }
    else {
      //if you get here you have connected to the WiFi
      Serial.println("connected...yeey :)");
      print_oled("Connected\nIP: " + WiFi.localIP().toString() + "\nSSID: " + WiFi.SSID(),1);    
