Simple question I think. When you write your code to control your arduino via webpage, is it combined in your main sketch for everything else. Or is it another sketch calling the functions of that sketch? I am using the Arduino to make a aquarium controller. Right now I have a temp sensor, relays that stay on or can be turned off by heat to high or too low, or simply by pressing a button. More things will be added in the future. This is all in one sketch. I guess what I am asking is am I going to just add more to this sketch or building a webpage calling back to those functions in the aquarium controller sketch.
GrundelGravy:
Simple question I think. When you write your code to control your arduino via webpage, is it combined in your main sketch for everything else. Or is it another sketch calling the functions of that sketch? I am using the Arduino to make a aquarium controller. Right now I have a temp sensor, relays that stay on or can be turned off by heat to high or too low, or simply by pressing a button. More things will be added in the future. This is all in one sketch. I guess what I am asking is am I going to just add more to this sketch or building a webpage calling back to those functions in the aquarium controller sketch.
Have a look at www.2wg.co.nz. That is an Arduino project - it is one application, one source code file (actually two plus libraries) and compiles to about 125k. On the website you will find code examples covering application web pages, web server URL processing and even cookie login security.
Hope this helps.
Catweazle NZ
I guess what I am asking is am I going to just add more to this sketch or building a webpage calling back to those functions in the aquarium controller sketch.
You can do either or both. If your arduino Ethernet card has an SD card slot, then large web pages can be served from the SD card. If you chose to use a main web page externally hosted, then you can put the arduino control links in that page.
Thanks. I appreciate it!!