StartTCPUpdate

Topics for the Eclipse Environment
Post Reply
jmcpherson96
Posts: 10
Joined: Fri Apr 25, 2008 4:51 am

StartTCPUpdate

Post by jmcpherson96 »

I am trying implement autoupdate mechanism via TCP.

I am trying use the StartTcpUpdate function with their TCP PC tool. Anybody have a code example of this.

Thanks
User avatar
lgitlitz
Posts: 331
Joined: Wed Apr 23, 2008 11:43 am
Location: San Diego, CA
Contact:

Re: StartTCPUpdate

Post by lgitlitz »

The TCP Update is somewhat simple to use. Just replace the EnableAutoUpdate(); function with StartTcpUpdate( int priority) function. For a priority you need to make sure that the task gets some CPU time so it can process any incoming data. It will always block if there is no incoming data on the update port so it is OK, and probably better, to make this task higher priority (lower number) then the user tasks. Try StartTcpUpdate( MAIN_PRIO - 1 );
Post Reply