Täglich grüßt das Murmeltier - Ardu und Webabfrage

Hallo, danke für den ersten Tip,

//Abfrage ob in der Relais.txt ein oder aus steht,
//ggf dann schalte port 2 ein oder aus

#include <EtherCard.h>
#include <SPI.h>
static byte mymac[] = { 0xAA,0x69,0x69,0x2D,0x30,0x31 };

byte Ethernet::buffer[300];
//byte Ethernet::buffer[700];
int wait = 5000; // milliseconds
int t = 0;
char website[] PROGMEM = "www.qslnet.de"; // URL der Webseite
static void my_callback (byte status, word off, word len) {
// -----------------------------------------------------------------------------------------
}
void setup () {
Serial.begin(57600);
Serial.println(F("\n[testDHCP]"));

Serial.print(F("MAC: "));
for (byte i = 0; i < 6; ++i) {
Serial.print(F(mymac*, HEX));*

  • if (i < 5)*

  • Serial.print(F(':'));*

  • }*

  • Serial.println(F());*

  • if (ether.begin(sizeof Ethernet::buffer, mymac) == 0)*

  • Serial.println(F( "Failed to access Ethernet controller"));*

  • Serial.println(F("Setting up DHCP"));*

  • if (!ether.dhcpSetup())*

  • Serial.println(F( "DHCP failed"));*

  • ether.printIp("My IP: ", ether.myip);*

  • ether.printIp("Netmask: ", ether.mymask);*

  • ether.printIp("GW IP: ", ether.gwip);*

  • ether.printIp("DNS IP: ", ether.dnsip);*

  • pinMode(2, OUTPUT);*

  • digitalWrite(2, LOW); // Ausgang zu Beginn auf "aus" setzen*

  • Serial.print(F("Startzustand: Relais aus"));*

}
void loop () {

delay(wait);

  • ether.packetLoop(ether.packetReceive());*

  • Serial.print(F("\n"));*

  • ether.browseUrl(PSTR("/member/dk0gsk/"), "relais.txt" , website, my_callback );*

  • //ether.browseUrl(PSTR("/member/dk0gsk/"), "relais.txt" , website, NULL );*

  • //ether.browseUrl(PSTR("/"), "relais.txt" , website, my_callback );*

  • //ether.browseUrl(PSTR("/relais.txt"), website, my_callback); *
    // static void my_callback (byte status, word off, word len) {
    _ String stringOne = ((const char*) Ethernet::buffer);_

  • Serial.print(F("String enthaelt: "));*

  • Serial.print(F(stringOne));*

  • Ethernet::buffer[700] = 0; *

  • t = 1;*

  • if (stringOne.endsWith("aus") && t == 1) {*

  • digitalWrite(2, LOW);*

  • Serial.print(F("Relais aus"));*

  • t = 0;*

  • }*

  • if (stringOne.endsWith("ein") && t == 1) {*

  • digitalWrite(2, HIGH); *

  • Serial.print(F("Relais ein"));*

  • t = 0;*

  • }*
    }
    bekomme aber beim kompilieren und aufspielen auf den Arduino den Fehler: F was not declaret in this scope...