Red -i web server
Lysvik
Posts: 2
I have a DS1620 on the BOE that delivers a temp reading and now a want it to deliver it to the red-i web server. This is a part off the code.
·· DisplayC:
······ centi = i_9_bit/2················· ··········· ·' Convert to degrees C relative to -55.
······ IF centi < 55 THEN subzC··············· ' Handle negative numbers.
······ centi = centi-55
······ DEBUG "+",DEC centi, " C",CR······· ' Display with plus sign.
···· RETURN
·SEROUT· 8,84,[noparse][[/noparse]"!RI0W06:dec centi",CLS]
This results in the webserver displaying·"· dec centi " ex.
http://82.182.32.49
Thanks Leo
·· DisplayC:
······ centi = i_9_bit/2················· ··········· ·' Convert to degrees C relative to -55.
······ IF centi < 55 THEN subzC··············· ' Handle negative numbers.
······ centi = centi-55
······ DEBUG "+",DEC centi, " C",CR······· ' Display with plus sign.
···· RETURN
·SEROUT· 8,84,[noparse][[/noparse]"!RI0W06:dec centi",CLS]
This results in the webserver displaying·"· dec centi " ex.
http://82.182.32.49
Thanks Leo
Comments
It looks like you have put your 'dec centi' inside the comment string. That is why you see it as a comment and not as a value.
I hope this helps,
Klaus