<commit_before>/*
 * Allows control of an Electronic Speed Controller (ESC) via a web server.
 * The request happens through a GET http method.
 */

#include <Servo.h>
#include <WiServer.h>

byte thestart = 0;  

#define WIRELESS_MODE_INFRA	1
#define WIRELESS_MODE_ADHOC	2

// Wireless configuration parameters ----------------------------------------
unsigned char local_ip[] = {192,168,1,60};	// IP address of WiShield
unsigned char gateway_ip[] = {192,168,1,254};	// router or gateway IP address
unsigned char subnet_mask[] = {255,255,255,0};	// subnet mask for the local network
const prog_char ssid[] PROGMEM = {"2WIRE689"};		// max 32 bytes

unsigned char security_type = 2;	// 0 - open; 1 - WEP; 2 - WPA; 3 - WPA2

// WPA/WPA2 passphrase
const prog_char security_passphrase[] PROGMEM = {"<PASSWORD>"};	// max 64 characters

// WEP 128-bit keys
// sample HEX keys
prog_uchar wep_keys[] PROGMEM = { 0x83, 0x7A, 0xAF, 0x74, 0xEC,	// Key 0
				  0x5F, 0xE5, 0x65, 0x9F, 0xF2,	// Key 1
				  0x69, 0x61, 0x53, 0x1C, 0x51, // Key 2
				  0xB5, 0x6F, 0xBE, 0xCB, 0x6B,	// Key 3
				};

// setup the wireless mode
// infrastructure - connect to AP
// adhoc - connect to another WiFi device
unsigned char wireless_mode = WIRELESS_MODE_INFRA;

unsigned char ssid_len;
unsigned char security_passphrase_len;
// End of wireless configuration parameters ----------------------------------------

// This is our page serving function that generates web pages
boolean sendMyPage(char* URL) 
{<commit_msg>adjust wifi parameters to work for the router<commit_after>/*
 * Allows control of an Electronic Speed Controller (ESC) via a web server.
 * The request happens through a GET http method.
 */

#include <Servo.h>
#include <WiServer.h>

byte thestart = 0;  

#define WIRELESS_MODE_INFRA	1
#define WIRELESS_MODE_ADHOC	2

// Wireless configuration parameters ----------------------------------------
unsigned char local_ip[] = {192,168,16,110};	// IP address of WiShield
unsigned char gateway_ip[] = {192,168,16,254};	// router or gateway IP address
unsigned char subnet_mask[] = {255,255,255,0};	// subnet mask for the local network
const prog_char ssid[] PROGMEM = {"MP01"};		// max 32 bytes

unsigned char security_type = 0;	// 0 - open; 1 - WEP; 2 - WPA; 3 - WPA2

// WPA/WPA2 passphrase
const prog_char security_passphrase[] PROGMEM = {"<PASSWORD>"};	// max 64 characters

// WEP 128-bit keys
// sample HEX keys
prog_uchar wep_keys[] PROGMEM = { 0x83, 0x7A, 0xAF, 0x74, 0xEC,	// Key 0
				  0x5F, 0xE5, 0x65, 0x9F, 0xF2,	// Key 1
				  0x69, 0x61, 0x53, 0x1C, 0x51, // Key 2
				  0xB5, 0x6F, 0xBE, 0xCB, 0x6B,	// Key 3
				};

// setup the wireless mode
// infrastructure - connect to AP
// adhoc - connect to another WiFi device
unsigned char wireless_mode = WIRELESS_MODE_INFRA;

unsigned char ssid_len;
unsigned char security_passphrase_len;
// End of wireless configuration parameters ----------------------------------------

// This is our page serving function that generates web pages
boolean sendMyPage(char* URL) 
{
{'fraction_non_alphanumeric': 0.1554746940125703, 'fraction_numerical': 0.0645054581541515, 'mean_word_length': 2.886889460154242, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3205081', 'n_tokens_mistral': 1199, 'n_tokens_neox': 1019, 'n_words': 353}