add in connect attempts and raspberry pi connection