Created Sun, 14 Oct 2012 14:42:44 +0000 by jefu007
Sun, 14 Oct 2012 14:42:44 +0000
Hi every one, i have purchase the chipkit max 32 and the network shield for a project that does not have space on the arduino.
I was developed some code with the Webduino Library ([url]http://code.google.com/p/webduino/[/url]) hoping that will only copy paste on my new "Chipkit compatible with arduino" now after 3 days of changing code for adapt my project to chpkit, the only think that i cant adapt is the webduino library :cry:
Does some one knows a library using chipkit for a Web Server with 2 or more pages, and the most important with capability to get the value from input text!!
some like:
.
.
.
form> First name: <input type= 'text' name='firstname'><br> </form>
.
.
.
do
{ repeat = server.readPOSTparam(name, 16, value, 16);
if (strcmp(name, "buzz") == 0)
{
Serial.println(name);
}
} while (repeat);
like the Webduino.
Please Help me here! Thanks in advance! Jeffrey
Tue, 23 Oct 2012 20:46:45 +0000
I've written an HTTP server example that uses the DNETcK and DWIFIcK, and the SD library for file system. It doesn't currently doesn't support the HTTP POST method, though, only GET.
Dennis Clark who writes a column in Servo magazine has written an article about it in the Nov issue and his modified version of the server example can be downloaded from the Servo magazine web site.
I'm still in the process of refining and writing it up before it gets posted on the Digilent web site. I can give you a copy of the current state of the project if you want.
Gene Apperson Digilent
Thu, 01 Nov 2012 07:33:53 +0000
I've written an HTTP server example that uses the DNETcK and DWIFIcK, and the SD library for file system. It doesn't currently doesn't support the HTTP POST method, though, only GET.
Gene, Do you have the HTTP server example somewhere on the internet? (as in the files, not the actual server)
Thanks :)
Sat, 03 Nov 2012 06:49:22 +0000
I want to use more than one i2C ports on Uno32,Max32 etc. Reference manuals say wire.h only supports one i2c and to use the Digilent DTWI library to access the other i2c ports.
Sat, 03 Nov 2012 19:23:35 +0000
Hi, Gene
Thaks God I've solve my problem using and translating some codes on internet! here is my final code,
char Array[254];
...
void loop(){
client= server.available();
if (client) {
while (client.connected()) {
if (client.available()) {
char c = client.read();
if (c == '\n' && currentLineIsBlank) {
bool repeat;
char name[16], value[16];
do{ repeat = readPOSTparam(name, 16, value, 16);
if(strcmp(name, "TextFielNameIwhant") == 0){
for(int i=0;i<15;i++){
Array[i]=value[i]; //What you whan to do
}
} while (repeat);
client.println("<!DOCTYPE html>");
client.println("<html><title> Test de variables </title>");
client.println("<body>");
.
.
.
client.println(" </body></html> ");
break;
}
if (c == '\n') {
currentLineIsBlank = true; // you're starting a new line
}
else if (c != '\r') {
currentLineIsBlank = false; // you've gotten a character on the current line
}
}}
delay(1);// give the web browser time to receive the data
client.stop();
}
}
But... there are some limitations on creating more then 1 page. I cant. Please send me your code I'll appreciated so much!
Jeffrey