adding write method to send generated packet to nordic over uart */