Page 1 of 1

How do I directly change variables on my PIC via HTML?

Posted: Wed Nov 12, 2014 7:05 am
by gmwow
Greetings Flowcoders. I have been lurking on here for several weeks trying to figure out exactly how I write a web page for a micro controller project I've been working on and have yet to find a working example of a web page I can extrapolate into what I need. I need to be able to change values of variables on my PIC from the web page and display values of of other variables on the web page in order to control several other devices. I have all the hardware working and can display a web page but I just don't know enough about html or how the PIC interacts with it to get it to work. Most of the examples I've tried just end up displaying the variable's name rather than value, e.g. the variable BOO1 displays on the web page as %BOO1% rather than the value of BOO1. I'm working with a PIC18f46k20 and a WIZ811MJ and using Flowcode 6.1. Really all I need is a working example of changing and displaying variables in html using 6.1 Flowcode. If you need anymore info I am happy to provide.

Thanks in advance.

Re: How do I directly change variables on my PIC via HTML?

Posted: Wed Nov 12, 2014 12:12 pm
by Benj
Hello,

You generally pass in the variables as strings on the URL.

This blog gives some examples. http://flowcode.co.uk/blog/?p=812#more-812

Re: How do I directly change variables on my PIC via HTML?

Posted: Thu Nov 13, 2014 9:35 am
by gmwow
Thanks Ben! You got me pointed in the right direction.

Re: How do I directly change variables on my PIC via HTML?

Posted: Thu Nov 13, 2014 12:10 pm
by gmwow
Another question for you, if I may. Using the Webserver component SetOutValue and GetInValue both use an index with a limit of 4. Do they use the same index and is there a way to increase it past 4? If possible how large can the index be increased? I apologize if these are stupid questions. I have very limited programming experience and I'm teaching myself as I go.