Serial + arduino refactor --> same behavior as Websoc client