   ECRY_idx,
   MAC_ADDR,
   DISCONNECT,
-  STATUS
+  STATUS,
+  BEGIN_SSID,
+  BEGIN_SSID_PASS
 };
 
 unsigned long _startMillis;

       Serial1.write(0xFF);
       Serial1.write(0xEE);
       break;       
       }

  }
void setup() {
  // put your setup code here, to run once:
  Serial1.begin(9600);


}

bool a = true;
void loop() {
       String prova;
       //command(ECRY_idx);
       //command(ECRY);
       //command(RSSI);
 
       //  command(SSID);
       //command(RSSI_idx);
       //command(MAC_ADDR);
       //command(DISCONNECT);
       //command(STATUS);
       //command(BEGIN_SSID);
       //command(BEGIN_SSID_PASS);
       command(BEGIN_SSID_PASS);
             
       prova = readStringUntil(0xEE);
       Serial.print("cmd: ");
       for(int x=0;x<prova.length();x++){
          Serial.print((uint8_t)prova[x],HEX);
