added timeout

added timeout to node code when waiting for base station to respond