Add network connectivity detection

Detect what kind of network you have on the device