A net architecture for mobile BLE devices work both in an Internet-accessible and Internet-access-restricted environment