Client connect without holding up thread


i have lamp cycles through rgb colours using pwm.  at set intervals polls webpage retrieve integer x , pulses (up white , original colour) x times.  this working have couple of questions regarding programming (and more ethernet library).

is there way use client.connect() without holding thread?  in loop function i'm checking display state , seeing whether needs update , performing whatever data access function needed next.  currently lamp colour stops cycling duration of connect - isn't noticable if fails connect can cause colour stick while.  

i'm still having few problems connections not clearing , failing connect after while.  i've spent quite lot of time on problem.  i tried patched copy of ethernet library , ethernet2 library still have issues.  the stability i've managed calling client.stop() function when receive "data finished" character site , not trying reconnect @ least 10 seconds - it's not perfect though.  what best way check whether connection has been cleared?

maybe i've not got answer because i'm on complicating question - how do needs constant updating when need holds thread while?  

do need second device or there programming trick?

thanks


Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > Client connect without holding up thread


arduino

Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums