code written for sending packets across motes, to be tested