Ard as ISP with XBEE, WiFi shld, two Uno R3's, two Ethernet Shields and SD minis

]

#define SD pinMode 4
#define Ethernet pinMode 10
#define IPAddress byte(x)

int sentDat;

void setup() {
Serial.begin(9600);
pinMode(2, OUTPUT);
}

void loop() {
if (Serial.available() > 0) {
sentDat = Serial.read();

if(sentDat == 'h'){
//activate the pumpkin for one second and then stop
digitalWrite(2, HIGH);
delay(1000);
digitalWrite(2, LOW);
}
}
}

using 'random' or 'random' seed doesn't work with IP configs....so by setting it to byte with (x) the result should be a dynamic IP as the gateway, you will still need to use your comp. IP as the default for legal purposes (etc....) but you can setup a dynamic IP with this as the basis [yes, it compiles].

pics attached are going to be the full ISP server system using the ID'd ard. components.

ard comp.jpg

layout.jpg

server chip.jpg

using 'random' or 'random' seed doesn't work with IP configs....so by setting it to byte with (x) the result should be a dynamic IP as the gateway, you will still need to use your comp. IP as the default for legal purposes (etc....) but you can setup a dynamic IP with this as the basis [yes, it compiles].

pics attached are going to be the full ISP server system using the ID'd ard. components.

What is the purpose of this post ? Are you announcing that you tested this and it works ? Do you have a question?

The code listed is both necessary and compiles for making a Dynamic IP config. I'd like help finishing it though...

//my code (attached) only has two errors:
CodeLine:21: error: expected initializer before 'pinMode'
CodeLine:21: error: expected declaration before '}' token

//line twenty one is:
int status WiFi; }

//my guess is i need to add:
void WiFi();
// and put this in before line 21...is that a good next step?
//what initializer do I need for pinMode?//
//this is before void setup:

#include<Keypad.h>
#include <SD.h>
#include <Ethernet.h>
#include <LiquidCrystal.h>
#include <SPI.h>
#include "SPI.h"
#include "pins_arduino.h"
#define Ethernet pinMode (10)
#define WiFi pinMode (12)
#define SD pinMode (“4”)
void pinMode();

//void setup code//

void setup();

char SSID[] = "yourNetwork";
int status WiFi; }
int keyIndex = 0;
char server[] = "www.google.com";
byte rowPins[ROWS] = {5, 4, 3, 2};
byte colPins[COLS] = {9,8, 7, 6};
Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );
void setup() {
Serial.begin(9600);
if (WiFi.status() == WL_NO_SHIELD) {
Serial.println("WiFi shield not present");
while(true);
}
(Serial.print,WiFi) (9600) ;
Serial.print("Attempting to connect to SSID: ");
Serial.println(ssid);
status = WiFi.begin(ssid, pass);
delay(10000);
LiquidCrystal.begin(9600);
for (int pinMode = (LiquidCrystal); {
pinMode(LiquidCrystal, OUTPUT);
Serial.println("Connected to wifi");
Serial.println("\nStarting connection to server...");
if (connect(Server, 80)) {
Serial.println("connected to server");
client.println("GET /search?q=arduino HTTP/1.1");
client.println("Host: www.google.com");
client.println("Connection: close");
client.println();
}

}

//void loop code [1]//

void loop() {
while (client.available()) {
char c = client.read();
Serial.write(c);
}
void printWifiStatus() {
Serial.print("SSID: ");
Serial.println(WiFi.SSID());
IPAddress ip = WiFi.localIP();
Serial.print("IP Address: ");
Serial.println(ip);
long rssi = WiFi.RSSI();
Serial.print("signal strength (RSSI):");
Serial.print(rssi);
Serial.println(" dBm");
}

if (millis() - lastConnectionTime > postingInterval) {
httpRequest();
}

boolean stringComplete = false;

Serial.begin(9600);
inputString.reserve(1000);
if (stringComplete) {
Serial.println(inputString);
inputString = "";
stringComplete = false;
if (Serial.available() > 0) {
int inByte = Serial.read(Keypad);
LiquidCrystal.begin lcd(12, 11, 5, 4, 3, 2);
{
if (Serial.available()) {
delay(100);
lcd.clear();
while (Serial.available() > 0) {
lcd.write(Serial.read());
}
if (WiFi.status() == WL_NO_SHIELD) {
Serial.println("WiFi shield not present");
while(true);
}
while ( status != WL_CONNECTED) {
Serial.print("Attempting to connect to open SSID: ");
Serial.println(ssid);
status = WiFi.begin(ssid);
delay(10000);
}
Serial.print("You're connected to the network");
printCurrentNet();
printWifiData();
}

{
// check the network connection once every 10 seconds:
delay(10000);
printCurrentNet();
}

void printWifiData() {
IPAddress ip = WiFi.localIP();
Serial.print("IP Address: ");
Serial.println(ip);
Serial.println(ip);
byte mac[6];
WiFi.macAddress(mac);
Serial.print("MAC address: ");
Serial.print(mac[5],HEX);
Serial.print(":");
Serial.print(mac[4],HEX);
Serial.print(":");
Serial.print(mac[3],HEX);
Serial.print(":");
Serial.print(mac[2],HEX);
Serial.print(":");
Serial.print(mac[1],HEX);
Serial.print(":");
Serial.println(mac[0],HEX);
IPAddress subnet = WiFi.subnetMask();
Serial.print("NetMask: ");
Serial.println(subnet);
IPAddress gateway = WiFi.gatewayIP();
Serial.print("Gateway: ");
Serial.println(gateway);
}

void printCurrentNet() {
Serial.print("SSID: ");
Serial.println(WiFi.SSID());
byte bssid[6];
WiFi.BSSID(bssid);
Serial.print("BSSID: ");
Serial.print(bssid[5],HEX);
Serial.print(":");
Serial.print(bssid[4],HEX);
Serial.print(":");
Serial.print(bssid[3],HEX);
Serial.print(":");
Serial.print(bssid[2],HEX);
Serial.print(":");
Serial.print(bssid[1],HEX);
Serial.print(":");
Serial.println(bssid[0],HEX);
long rssi = WiFi.RSSI();
Serial.print("signal strength (RSSI):");
Serial.println(rssi);
byte encryption = WiFi.encryptionType();
Serial.print("Encryption Type:");
Serial.println(encryption,HEX);

//void loop code [2]//

void httpRequest() {
client.stop();
if (client.connect(server, 80)) {
Serial.println("connecting...");
client.println("GET /latest.txt HTTP/1.1");
client.println("Host: www.arduino.cc");
client.println("User-Agent: ArduinoWiFi/1.1");
client.println("Connection: close");
client.println();
lastConnectionTime = millis();
}
else {
Serial.println("connection failed");
}
}

void printWifiStatus() {
Serial.print("SSID: ");
Serial.println(WiFi.SSID());
IPAddress ip = WiFi.localIP();
Serial.print("IP Address: ");
Serial.println(ip);
long rssi = WiFi.RSSI();
Serial.print("signal strength (RSSI):");
Serial.print(rssi);
Serial.println(" dBm");
}

}
}
}

(Serial.print,WiFi) (9600) ;

What is this mess?

yeah.....
What I'm trying to do is set up Internet Service Providing [what I mean by ISP] and use a SainSmart LCD to monitor network traffic and store bytes [signature based] on my 8 gb mini-SD in the WiFi shield. I'm using an Xbee pro 2 with whip antenna but am probably going to switch once I get it going [I have a pro 2 with chip antenna].

I thought I could route the serial print function to wifi with that line...

I am an extreme newb with arduino....

I am an extreme newb with arduino....

Then, perhaps you should NOT being doing this as your first project.

lead, follow, or get out of the way I guess. [USMC saying...]

I figure I've got time and the components, plus plenty of reading material and now this forum...so, well I'd rather work on this for a year or so than spend that year getting my gear to beep when people tweet me or configure lights to go on when I press a button on my keypad. //just my humble opinion