Time getting displayed as Null in device_status.py

When I run device_status.py it shows the following:
{“value”: “offline”, “time”: null, “success”: 1}
Why is it displaying time a null value?

Following is the code:

from boltiot import Bolt
api_key = “-----------”
device_id = “------------”
mybolt = Bolt(api_key, device_id)
response = mybolt.isOnline()

API and Device name is correct.

@vikrant123rathore this is because your bolt iot module is not on at the time of running the python script.

Plug in the Bolt wifi module and connect it with a wifi network and then run this script