figure out why some packets are invalid and handle it properly instead of retrying write api documentation handle reconnecting device / unconnected device etc. exceptions test if it's stable