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

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
gmwow
Posts: 11
Joined: Sat Sep 27, 2014 4:14 am
Location: Colorado, US
Has thanked: 2 times

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

Post 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.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

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

Post 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

gmwow
Posts: 11
Joined: Sat Sep 27, 2014 4:14 am
Location: Colorado, US
Has thanked: 2 times

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

Post by gmwow »

Thanks Ben! You got me pointed in the right direction.

gmwow
Posts: 11
Joined: Sat Sep 27, 2014 4:14 am
Location: Colorado, US
Has thanked: 2 times

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

Post 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.

Post Reply