
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);
}
}
Kommentare zu diesen Handbüchern