Not a big deal using:
uart.on("data", 0, function(data)
But I need to "do something" (reset other device) on every NEW connection to TCP (after reset device presents it's firmware revision etc). I've tried to use:
but looks that it's NOT working (never enters into "do_reset()" function).
I can add "reset_needed flag" and do something on "receive" callback but it's called when something will arrive on TCP so it's NOT a solution. Any ideas how to do it?