Wifi Module connected to the cloud but in linux its not showing online

I am attaching a link where my SS of the code is there.
My Wi-Fi module is connected to the cloud but when I am running my code in Python to check the status of the device in Linux it’s not showing online.

First check if your VM has internet access on it.


ping google.com

and send a screenshot

yes. It worked. My VM was not connected to the internet. Thanks