To access the current network SSID of the device from your scripts, you will need to allow specific settings on your device OS/
If the Android Device WiFi displays your WiFi network name as <unknown ssid>, you may need to grant the iViewer Android app “Allow all the time” location permissions:
Try rebooting the device. There are known issues on various mobile OS versions that require you to reboot the app after granting the permissions.