Benvenuti sul Forum di AcquaPortal, la più grande community italiana di acquariofilia!
Sul Forum di AcquaPortal puoi discutere con altri appassionati di acquariofilia, tenere un tuo Blog personale, inserire foto e video, chattare, ed aiutarci a creare un grande database con schede di pesci, invertebrati e prodotti di acquariofilia.
Per entrar a far parte della comunità occorre registrarsi.
Per farlo premi su
Al momento della registrazione ti verrà richiesto di accettare il Regolamento che ti consigliamo di leggere attentamente.
Ti consigliamo inoltre di leggere le FAQ per apprendere le funzionalità principali del forum.
Se invece sei un utente registrato e hai dimenticato i tuoi dati di accesso devi effettuare il Recupero dati.
Tecnica marinoPer parlare della vasca, del mobile, della sump, dell'impianto idraulico, delle attrezzature e degli accessori (pompe, filtri, schiumatoi, reattori, ecc).
/*
WLAN_WEP_KEY
Wireless*WEP*Key*for*WEP8*authentication*mode
*/
#define*WLAN_WEP_KEY*"xxxxxxxxxxxxxxxxxxxxxxxxxx" //WEP8 key - change if using WEP8 authentication mode
/*
WLAN_WEP_NUM
Wireless*WEP*Key*to*be*used*for*WEP8*authentica tion*mode
*/
#define*WLAN_WEP_NUM*1**//WEP8 key to be used - change if using WEP8 authentication mode
/*
WLAN_PHRASE
Wireless*Passphrase*for*WPA1*or*WPA2*authenticatio n*mode
*/
#define*WLAN_PHRASE*"xxxxxxxxx" //WPA1 or WPA2 pass phrase - change if using WPA1 or WPA2 authentication mode
/*
WLAN_SSID
Wireless*SSID*to*associate*with
*/
#define*WLAN_SSID*"xxxxxxxxxx" //change to your SSID
/************************************************** ************************************************** ************************************************** ***************************/
**setupwifistart:
**Serial.println("exit"); // exit setup mode
**delay(100); // wait .1 sec
**Serial.flush(); // Flush incoming serial
**delay(100); // wait .1 sec
**Serial.print("$$$"); // enter setup mode
**delay(300); // wait .3 sec
**Serial.println("show c"); // request connection status
**delay(100); // wait .1 sec
**lastmillis=millis();
**do // flush serial until get 8, which is always constant on the connection status value.
**{
****if (Serial.available()>0) conn[0] = Serial.read();
****if (conn[0] == '8')
****{
******connindex++;
******status=true;
****}
****if (millis()-lastmillis>2000) goto setupwifistart;
**}
**while (!status);
**status=false;
**lastmillis=millis();
**do // Acquire 4 bytes of data representing the connection status
**{
****if (Serial.available()>0) conn[connindex++] = Serial.read();
****if (connindex > 3)
****{
******conn[4]=0;
******Serial.flush(); // Flush incoming serial
******ReefAngel.LCD.DrawText(0,*255,*10,*25,"Status:"); // Draw text
******ReefAngel.LCD.DrawText(0,*255,*90,*25,conn); **// Draw text
******status=true;
****}
****if (millis()-lastmillis>2000) goto setupwifistart;
**}
**while (!status);
**if (conn[2]=='3') // check if wifi attachment is already setup
**{
****ReefAngel.LCD.DrawText(0,*255,*10,*35,"Already Setup"); // Draw text
****ReefAngel.LCD.DrawText(0,*255,*10,*45,"Exiting..."); // Draw text
****Serial.println("exit"); // exit setup mode
****delay(100); // wait .1 sec
****Serial.flush(); // Flush incoming serial
**}
**else
**{
****if (WLAN_AUTH_MODE==1)
****{*
******//ReefAngel.LCD.DrawText(0, 255, 10, 35,"set wlan key "); // Draw text
******//ReefAngel.LCD.DrawText(0, 255, 90, 35,WLAN_WEP_KEY); // Draw text
******Serial.print("set w k "); // set wlan wep key
******Serial.println(WLAN_WEP_KEY);
******delay(1000); // wait 1 sec
******Serial.flush(); // Flush incoming serial
******//ReefAngel.LCD.DrawText(0, 255, 10, 45,"set wlan num "); // Draw text
******//ReefAngel.LCD.DrawText(0, 255, 90, 45,WLAN_WEP_NUM); // Draw text
******Serial.print("set w n "); // set wlan wep key number
******Serial.println(WLAN_WEP_NUM);
******delay(1000); // wait 1 sec
******Serial.flush(); // Flush incoming serial
****}
****if (WLAN_AUTH_MODE==2 || WLAN_AUTH_MODE==3 || WLAN_AUTH_MODE==4)
****{*
******//ReefAngel.LCD.DrawText(0, 255, 10, 35,"set wlan phrase "); // Draw text
******//ReefAngel.LCD.DrawText(0, 255, 10, 45,WLAN_PHRASE); // Draw text
******Serial.print("set w p "); // set wlan passphrase for WAP1/WAP2
******Serial.println(WLAN_PHRASE);
******delay(1000); // wait 1 sec
******Serial.flush(); // Flush incoming serial
****}
****//ReefAngel.LCD.DrawText(0, 255, 10, 55,"set wlan ssid "); // Draw text
****//ReefAngel.LCD.DrawText(0, 255, 10, 65,WLAN_SSID); // Draw text
****Serial.print("set w s "); // set wlan ssid
****Serial.println(WLAN_SSID);
****delay(1000); // wait 1 sec
****Serial.flush(); // Flush incoming serial
****//ReefAngel.LCD.DrawText(0, 255, 10, 75,"set ip localport 80"); // Draw text
****Serial.println("set i l 2000"); // set ip port
****delay(100); // wait .1 sec
****Serial.flush(); // Flush incoming serial
****//ReefAngel.LCD.DrawText(0, 255, 10, 85,"set comm close 0"); // Draw text
****Serial.println("set c c 0"); // set comm close to nothing
****delay(100); // wait .1 sec
****Serial.flush(); // Flush incoming serial
****//ReefAngel.LCD.DrawText(0, 255, 10, 95,"set comm open 0"); // Draw text
****Serial.println("set c o 0"); // set comm open to nothing
****delay(100); // wait .1 sec
****Serial.flush(); // Flush incoming serial
****//ReefAngel.LCD.DrawText(0, 255, 10, 105,"set comm remote 0"); // Draw text
****Serial.println("set c r 0"); // set comm remote to nothing
****delay(100); // wait .1 sec
****Serial.flush(); // Flush incoming serial
****Serial.println("set c i 3"); // set comm idle to 3
****delay(100); // wait .1 sec
****Serial.flush(); // Flush incoming serial
****Serial.println("set c s 2048"); // set comm IP packet size to 2048
****delay(100); // wait .1 sec
****Serial.flush(); // Flush incoming serial
****Serial.println("set s p 0"); // set system printlvl 0
****delay(100); // wait .1 sec
****Serial.flush(); // Flush incoming serial