Background thread.


hi guys, what's best way go having background thread?

i have project uses rfid reader , customer facing …so scanned need feedback fine.

the problem same project communicates http server every 100 seconds download information , process can take 20-30 seconds maybe longer if grps connection poor.

so problem if user scans while controller communicating http server no response undesired; what's best approach fix issue?

hello,

replace blocking code state machine, divided small tasks. not use delays, blink without delay example.

here basic example of state machine

more info here: http://www.gammon.com.au/statemachine

can't without seeing code.


Arduino Forum > Using Arduino > Programming Questions > Background thread.


arduino

Comments