View previous topic :: View next topic |
Author |
Message |
jeftab
Joined: 10 Feb 2011 Posts: 10
|
ethernet 18f4620 |
Posted: Tue Feb 15, 2011 3:30 pm |
|
|
I am working on a project with the 18f4620 and the 28jc60.
My whole code is ready, but when it comes to the web page, which includes some java scripts and other things, I don't know how to include them in my code instead of only having it like this which doesn't work:
Code: |
#define STACK_USE_ICMP 1
#define STACK_USE_ARP 1
#define STACK_USE_TCP 1
#define STACK_USE_HTTP 1
#define STACK_USE_DHCP 1 // en DHCP seulement
#define STANDARD_ADC_CHANNEL 0
#define STACK_USE_CCS_PICENS TRUE
#define STACK_USE_MCPENC TRUE
#define STACK_USE_CCS_PICEEC FALSE
#define STACK_USE_CCS_EWL3V FALSE
#define USER_LED1 PIN_D2
#include <18f4620.h>
#use delay(clock=40000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7)
#fuses HS,NOWDT,NOLVP,NODEBUG
#include "tcpip\stacktsk.c"
#include "tcpip/mlcd.c"
void buzgaz (void);
/**********************************************************************************************
// le tableau qui suivt est la 2 page du site web
// Pour l'instant, il faut écrire un petit message de bienvenue
**********************************************************************************************/
//Page index
const char HTML_INDEX_PAGE[]=[u]"<HTML><HEAD><META HTTP-EQUIV=refresh CONTENT=3><TITLE>PICNET</TITLE></HEAD><BODY><H1>TEST TEST TEST<Br>%1<Br>%y<Br>%z
</H1>
<form method=get action=\"\">
<div align=\"left\">
<p><font
size=4>Led1 <input type=radio value=1 name=led1>
on
<input type=radio value=0 name=led1>
off</p>
<input type=submit value=Appuyer>
</p></form>
</body></html>";[/u] |
|
|
|
E_Blue
Joined: 13 Apr 2011 Posts: 417
|
|
Posted: Mon Apr 18, 2011 9:01 am |
|
|
Try changing
Code: | #include "tcpip/mlcd.c" |
by
Code: | #include "tcpip\mlcd.c" |
_________________ Electric Blue |
|
|
jeftab
Joined: 10 Feb 2011 Posts: 10
|
hmm |
Posted: Mon May 02, 2011 7:34 am |
|
|
your point ? |
|
|
|