Hi, I have do do something a little odd, and I would like to have your advice about it and to know if anyone has ever seen anything like it

I need to simulate the interface available on the Arduino (with the WizChip), I believe that wiht such an interface I could use some software develloped for the Arduino platform. Please help me pointing to a better direction.

The API interface is like this:
=====
EthernetServer TelnetServer1(ETH_PORT_TELNET); // Static object, defines the listening port
EthernetClient TelnetClient=NULL;              // used when connected
void setup() {
   TelnetServer1.begin();
}
void loop(){
if (!TelnetClient){ // verify if a connection is already open
    if ((TelnetClient=TelnetServer1.available())==NULL){
     return;
    }else{// Newconnection
      TelnetClient.println(F("Conectado - BonsEletrons"));
    }
  }
  if (TelnetClient.connected()){
    while (TelnetClient.available())
    {
      uint8_t c = TelnetClient.read();            // Get one char at a time
      // ... do something
      TelnetClient.println("Erro!");              // send results
    }
  }else{                           // nao est mais conectado
    TelnetClient.stop(); // close the connection:
  }
}
=====
Thanks for any suggestion
Alain

_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to