EB023v1 Webserver displaying variables

For E-blocks user to discuss using E-blocks and programming for them.

Moderators: Benj, Mods

Post Reply
chipfryer
Posts: 9
Joined: Tue Mar 26, 2013 4:29 pm
Has thanked: 3 times
Been thanked: 2 times
Contact:

EB023v1 Webserver displaying variables

Post by chipfryer »

Hi

Never having connected a uC to the internet before I thought your internet board would be a good place to start. Using your example Webserver application as a guide I've been able to get things up and running. Modifying things a bit I now wish to display the value of an ADC input, defined as both a byte and an integer, on both the LCD display and the Webserver for no other reason as to play and learn. I've read the ADC twice, using two variables defined as a Byte (S1) and Integer (S2) and when I display them on the LCD everything is fine.

However when I modify the Webserver HTML code to display the values, they both display as a byte

<p> Value S1 = %S1% </p>
<p> Value S2 = %S2% </p>

I freely admit to knowing little about HTML and I'm now trawling the internet for anything that can help me understand why they both display as a byte. I am probably making a newbie mistake so any advice is welcomed.

Regards

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: EB023v1 Webserver displaying variables

Post by LeighM »

Hi
The limitation you are encountering in due to the internal Flowcode substitution array being a byte array (to conserve memory).
So not anything you are doing wrong.
Well done with your project.
Leigh

chipfryer
Posts: 9
Joined: Tue Mar 26, 2013 4:29 pm
Has thanked: 3 times
Been thanked: 2 times
Contact:

Re: EB023v1 Webserver displaying variables

Post by chipfryer »

Hi Leigh

Thanks for your prompt reply. That has saved me a lot of head scratching <s>

Regards

Post Reply