UART + Dynamic HTML

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

UART + Dynamic HTML

1,512 Views
Jose_86
Contributor I
Hello,
 
I would like to show in a dynamic web page (using coldfire lite http server) a date inserted by UART port of MC5233DEMO.
 
The code used:
 
void collect_sensor_data( void )
{
.
.
.
 html_vars[3]  = getch();
.
.
.
}
 
It doesn't work. The funcion getch() always returns -1. ¿Do u have any idea? Thanks!
 
 
Labels (1)
0 Kudos
Reply
3 Replies

515 Views
Jesse
Contributor I
We replaced the call to getch with the UART port as follows:
 
Code:
html_vars[14]  = MCF_UART1_URB;

 
This appears to be working.
0 Kudos
Reply

515 Views
Jose_86
Contributor I
I have already solved my problem. Thx.
0 Kudos
Reply

515 Views
Jesse
Contributor I
I'm having the same problem.  Could you post what your solution was so it may help others?
 
Thank you,
-Jesse
0 Kudos
Reply