problem with understand the HTTPDemo

General discussion on mikroC.
Post Reply
Author
Message
firdauskhalid
Posts: 18
Joined: 14 Jan 2010 07:00
Contact:

problem with understand the HTTPDemo

#1 Post by firdauskhalid » 22 Feb 2010 09:01

i try to understand the HttpDemo example and i try to run it on my pic18f67j60 and my led ports are B0,B1 and B2..can u give an example program..i try many times and i cannot toggle the led with the web page control.

Best Regard
Firdaus Khalid

User avatar
tihomir.losic
mikroElektronika team
Posts: 2138
Joined: 02 Dec 2009 14:16
Location: Serbia
Contact:

Re: problem with understand the HTTPDemo

#2 Post by tihomir.losic » 22 Feb 2010 16:33

Hello Khalid,

please follow this link:
http://www.mikroe.com/zip/lv18f_v6/lv18 ... s_v100.zip
In folder:
\v18f_v6_examples_v100\LV18F v6 Examples\mikroC PRO for PIC\Ethernet j60\HTTP Demo
this example shows how to use the Ethernet mini library.

For any further assistance, feel free to contact us.

Best regards,

Losic Tihomir
mikroElektronika [Support team]

NUFAN
Posts: 65
Joined: 08 Dec 2009 20:15

Re: problem with understand the HTTPDemo

#3 Post by NUFAN » 22 Feb 2010 21:42

I have a similar problem. I read HTTPDemo many times but still do not understand how it works :(
Last edited by NUFAN on 03 May 2010 13:33, edited 1 time in total.

firdauskhalid
Posts: 18
Joined: 14 Jan 2010 07:00
Contact:

Re: problem with understand the HTTPDemo

#4 Post by firdauskhalid » 24 Feb 2010 02:33

i already try to use httpdemo and do some adjustment so it can work on my pic..but i still cant toggle the led using the webpage..but i can load the webpage from my pic...what is the problem?..n i really need a details for me to understand the example code which is httpdemo..

Thanks

alexzupo
Posts: 4
Joined: 04 May 2011 15:51

Re: problem with understand the HTTPDemo

#5 Post by alexzupo » 01 Jul 2011 10:57

I had alll this error when compiler it.......why=== :(



0 1 mBPic.exe -DBG -pP18F87J60 -MSF -RA -O11000000 -fo25 -N"C:\Programmi\Mikroelektronika\mikroBasic PRO for PIC\LV18F v6 Examples\mikroBasic PRO for PIC\Ethernet j60\Basic Realm\Basic_Realm.mbppi" -SP"C:\Programmi\Mikroelektronika\mikroBasic PRO for PIC\defs\" -SP"C:\Programmi\Mikroelektronika\mikroBasic PRO for PIC\uses\P18\" -SP"C:\Programmi\Mikroelektronika\mikroBasic PRO for PIC\LV18F v6 Examples\mikroBasic PRO for PIC\Ethernet j60\Basic Realm\" "__Lib_Math.mcl" "__Lib_MathDouble.mcl" "__Lib_System.mcl" "__Lib_Delays.mcl" "__Lib_String.mcl" "__Lib_ETHERNET_j60.mcl" "Basic_Realm.mbas" "HTTP_Utils.mbas" "Pictures.mbas"
0 155 Available RAM: 3691 [bytes], Available ROM: 131064 [bytes]
0 133 Compilation Started C:\Programmi\Mikroelektronika\mikroBasic PRO for PIC\defs\P18F87J60.mbas
1 1015 Hint: Compiling unit "C:\Programmi\Mikroelektronika\mikroBasic PRO for PIC\defs\P18F87J60.mbas" P18F87J60.mbas
2190 1010 Hint: Unit "P18F87J60.mbas" has been recompiled P18F87J60.mbas
0 134 Compiled Successfully C:\Programmi\Mikroelektronika\mikroBasic PRO for PIC\defs\P18F87J60.mbas
0 133 Compilation Started C:\Programmi\Mikroelektronika\mikroBasic PRO for PIC\uses\P18\__Lib_Delays.mbas
1 1015 Hint: Compiling unit "C:\Programmi\Mikroelektronika\mikroBasic PRO for PIC\uses\P18\__Lib_Delays.mbas" __Lib_Delays.mbas
171 1010 Hint: Unit "__Lib_Delays.mbas" has been recompiled __Lib_Delays.mbas
0 134 Compiled Successfully C:\Programmi\Mikroelektronika\mikroBasic PRO for PIC\uses\P18\__Lib_Delays.mbas
0 133 Compilation Started C:\Programmi\Mikroelektronika\mikroBasic PRO for PIC\LV18F v6 Examples\mikroBasic PRO for PIC\Ethernet j60\Basic Realm\Basic_Realm.mbas
1 1015 Hint: Compiling unit "C:\Programmi\Mikroelektronika\mikroBasic PRO for PIC\LV18F v6 Examples\mikroBasic PRO for PIC\Ethernet j60\Basic Realm\Basic_Realm.mbas" Basic_Realm.mbas
1 1015 Hint: Compiling unit "C:\Programmi\Mikroelektronika\mikroBasic PRO for PIC\LV18F v6 Examples\mikroBasic PRO for PIC\Ethernet j60\Basic Realm\HTTP_Utils.mbas" HTTP_Utils.mbas
33 1017 Warning: Aggregate padded with zeros (1) in order to match declared size (25) HTTP_Utils.mbas
179 304 Syntax error: Expected "pointer to char (s2)" but "pointer to byte (passwd)" found HTTP_Utils.mbas
179 327 Incompatible types ("complex type" to "simple type") HTTP_Utils.mbas
179 304 Syntax error: Expected "else" but "then" found HTTP_Utils.mbas
180 304 Syntax error: Expected "end" but "=" found HTTP_Utils.mbas
180 304 Syntax error: Expected "if" but "1" found HTTP_Utils.mbas
182 304 Syntax error: Expected "wend" but "break" found HTTP_Utils.mbas
183 304 Syntax error: Expected "sub" but "if" found HTTP_Utils.mbas
184 304 Syntax error: Expected "end" but "i" found HTTP_Utils.mbas
184 304 Syntax error: Expected "." but "=" found HTTP_Utils.mbas
0 134 Compiled Successfully C:\Programmi\Mikroelektronika\mikroBasic PRO for PIC\LV18F v6 Examples\mikroBasic PRO for PIC\Ethernet j60\Basic Realm\Basic_Realm.mbas
0 139 All files Compiled in 0 ms
0 357 main function is not defined main function is not defined
0 453 Unsuccessful linking 'Basic_Realm.mbppi' Unsuccessful linking 'Basic_Realm.mbppi'
0 102 Finished (with errors): 01 lug 2011, 11.55.51 Basic_Realm.mbppi

User avatar
janko.kaljevic
Posts: 3565
Joined: 16 Jun 2011 13:48

Re: problem with understand the HTTPDemo

#6 Post by janko.kaljevic » 04 Jul 2011 17:03

Apparently You made modifications which cause syntax errors.
Please post your code so we can inspect it
Regards.

Post Reply

Return to “mikroC General”