     With assistance and code from Greg Alekel and Payton Byrd
 */
 
+/* TODO
+ *  set ip tcp-mode 0x10 to disable remote configuration
+ *  wifly.setBroadcastInterval(0);
+ *  wifly.setDeviceID("Wifi-Modem");
+ *  
+ *  
+ *  
+ */
+
+
 //#define DEBUG
 
 // Defining HAYES enables Hayes commands and disables the 1) and 2) menu options for telnet and incoming connections.
 // This is required to ensure the compiled code is <= 30,720 bytes 
-#define HAYES
+//#define HAYES
 //#define ENABLE_C64_DCD
 #include <MicroView.h>
 #include <elapsedMillis.h>

                switch(Modem_CommandBuffer[i])
                {
                    case 'T':
                    case 'P':                    
                    Modem_Dialout(&Modem_CommandBuffer[i+1]);
                    dialed_out = 1;
                    i = COMMAND_BUFFER_SIZE-3;    // Make sure we don't try to process any more...

    /* Do a DNS lookup to get the IP address.  Lookup has a 5 second timeout. */
    char ip[16];
    if (!wifly.getHostByName(host.c_str(), ip, sizeof(ip))) {
       DisplayBoth(F("Could not resolve DNS.  Connect Failed!"));
#ifdef HAYES
       Modem_Disconnect();
#endif
       return;
    }

