xport code, have example, confused though


Results 1 to 15 of 15

Threaded View

  1. #7
    Join Date
    Feb 2005
    Location
    Toronto, Canada
    Posts
    46


    Did you find this post helpful? Yes | No

    Default

    that's just what I was thinking here as I was editing the code.
    I looked up the manual for the xport so I can now see there's terminal options for setting it up, as well as their software and I can change 9600 to 2400

    however I don't really see if it's possible to do all that from the pic. it seems it only needs to be done once? is that right?

    I think the 16f628a internal OSC with 2400 should be reliable enough right?
    it's a hobby project. I could take it even lower though there's not alot of data being sent.


    the last function is now changed to

    Code:
    http_request:
    adcVar = 56
        ' light LED to indicate HTTP GET request in progress:
        high httpPin
        inByte = "z"
        
        SEROUT2 TX, T2400, ["GET /xport_test.php?action=insert&"]
        serout2 tx, T2400, ["sensorValue=", DEC adcVar]
        serout2 tx, T2400, [" HTTP/1.1", 10]
        serout2 tx, T2400, ["HOST: brandejs.ca", 10, 10]
        ' wait for bytes from server:
        ' php script sends anything other than Z to end transmission:
        while inByte == "z"
            serin2 rx, T2400, [DEC inByte]
        wend
        ' now we're disconnected:
        connected = 0
        ' turn off LED, since GET request is complete:
        low httpPin
    return
    Last edited by kenpo; - 19th February 2009 at 21:53.

Similar Threads

  1. Reading in Manchester code
    By brid0030 in forum Code Examples
    Replies: 0
    Last Post: - 10th March 2009, 21:55
  2. How much code space do PBP statements use.
    By Darrel Taylor in forum Code Examples
    Replies: 5
    Last Post: - 13th February 2009, 21:31
  3. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  4. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  5. Re-Writing IF-THEN-AND-ENDIF code?
    By jessey in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 18th August 2006, 17:23

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