Edit server to use input interrupts from GPIO and send data to phone.