changed file descriptor to /dev/nrf51822_0