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
StartTCPUpdate
Re: StartTCPUpdate
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 );