D-Link DSL-G684T Uživatelský manuál Strana 48

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 118
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 47
48
- TELNET to communicate with control system telnet protocol is used. When
command sent to Arduino is not one from above it is recognized as a telnet
command and send directly to WiFly shield. It is done to be able to change
properties of wireless connection stored within RN-131C module.
void Save_To_EEPROM(String data)
{
int start = 0;
byte c = 255;
for (int i = 0; i < 1023; i++)
{
if (EEPROM.read(i) == 255)
{
start = i + 1;
break;
}
}
for (int i = 0; i < data.length(); i++)
{
c = data.charAt(i);
EEPROM.write(start, c);
start++;
}
EEPROM.write(start , 255);
}
void Clear_EEPROM()
{
for (int i = 0 ; i < 1023 ; i++)
{
EEPROM.write(i,0);
}
}
Zobrazit stránku 47
1 2 ... 43 44 45 46 47 48 49 50 51 52 53 ... 117 118

Komentáře k této Příručce

Žádné komentáře