Using the Arduino Ethernet shield with AMICUS18 (Joint forum project?)


Results 1 to 40 of 63

Threaded View

  1. #24
    Join Date
    Mar 2014
    Posts
    5

    Default Re: Using the Arduino Ethernet shield with AMICUS18 (Joint forum project?)

    hello henrik

    thanks you for help and the pbp source code,

    i was modifie your code for proton basic , and i was use 18F4620 , now wprking very stabile.

    my web server
    Name:  1.bmp
Views: 2042
Size:  1,005.7 KB



    - ping it is ok!
    - web server it is ok
    - send get ang command it is ok
    - response and data it is ok

    but i have any problem,

    it is my html code,

    how to use scrip in to do code?

    index:


    Buffer = "<html>" : GoSub PutStringInTXBuffer
    Buffer = "<body>" : GoSub PutStringInTXBuffer
    Buffer = "<title>my server</title>" : GoSub PutStringInTXBuffer

    Buffer = "<h3>My Mini Web Server Alive</h3>" : GoSub PutStringInTXBuffer

    Buffer = "<img src=http://www.enkatechnology.com/12.jpg >" : GoSub PutStringInTXBuffer


    Buffer = "<p>Thenk you Henrik Olsson 2014</p>" : GoSub PutStringInTXBuffer

    Buffer = "<form name=input action=/ method=get>" : GoSub PutStringInTXBuffer
    Buffer = "<input type=submit align=center name=tst1 value=3 />" : GoSub PutStringInTXBuffer
    Buffer = "</form>" : GoSub PutStringInTXBuffer


    Buffer = "<form name=input action=/ method=get>" : GoSub PutStringInTXBuffer
    Buffer = "<input type=submit align=center name=tst2 value=5 />" : GoSub PutStringInTXBuffer
    Buffer = "</form>" : GoSub PutStringInTXBuffer


    Buffer = "<a href=http://www.google.com>Go To Google</a>" : GoSub PutStringInTXBuffer

    'Buffer = "<p> toplam request = " + Str$(Dec RequestCount) + "</p>" : GoSub PutStringInTXBuffer


    Buffer ="<p>AN2 Data= </p>" : GoSub PutStringInTXBuffer
    Buffer ="<script src=/s></script>" : GoSub PutStringInTXBuffer
    Buffer ="<p><script>document.write(AN2)</script></p>" : GoSub PutStringInTXBuffer





    Buffer = "</body></html>" : GoSub PutStringInTXBuffer



    Return


    i wat to use <script src=/s></script> and turn the back "<p><script>document.write(AN2)</script></p>" AN2 = 27 for exp. what you thing about?



    i was receive "s" and portc.2 led is blinking but, i dont send the AN2 data to back.

    my data receive code,

    data_kontrol:


    '----------------------------------
    If Buffer[11] = "3" Then
    PORTC.2 = 1'led aç
    'END
    EndIf
    '----------------------------------
    If Buffer[11] = "5" Then
    PORTC.2 = 0'led kapat
    'END
    EndIf
    '----------------------------------
    If Buffer[5] = "s" Then
    PORTC.2 =1
    DelayMS 500
    PORTC.2 =0
    EndIf


    Return
    Last edited by tayfun; - 27th April 2014 at 17:26.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts