Device View Not Found

Hi Team,

BOLT device blue and green LED is glowing which means the device is switched on and is also connected to the Bolt Cloud. The device was operational and was working fine but from yesterday, the operations of the device stopped automatically. I tried rectifying the case, and found eror as “Device View not Found”. Attached is the screenshot. The device is online and blue indicator on app is also glowing. On bolt cloud, all the configuration as well as the device is also linked with the configuration, still I am getting error now after 3-4 months of operation.
Please suggest.

Hi @er.simarpreetsingh, kindly use it on google chrome on your desktop or laptop. There you won’t find these issue.

Hi team,
I am also getting the same error(device view not found) and blue and green light working properly but these error doesn’t resolve.

As the message clearly says, “You have not written any code for this product”.

Please visit the cloud dashboard ie https://cloud.boltiot.com via laptop, go to the product linked to the above device and write the code, deploy the same.

You should be able to see the output on the device depending on the type of code that you have written.

I wrote the code inside config but the same error is coming.
And my laptop is connected to bolt but mobile app automatically disconnects and the laptop is showing online after bolt start.

I checked wifi connectivity but no problem is shown in it and still not resolving the error

Hi @alishaumk,

In setKey function, pass the API key and device id parameter as below. ApiKey and Name will be auto initialized by bolt cloud. Keep the below line as it is in the code.

setKey('{{ApiKey}}','{{Name}}');

Do let me know in case you need any other information.

1 Like

Hi ,


I tried it but it looks like this and clicking the button but the light is not on.

@alishaumk try setting the api key n name as default, i too faced the same issue by editing my api key with the generated one, but set it that to default it works .

While copy and pasting the code from the “Project 3: Controlling LED”.

Bolt IoT Platform ON OFF

Don’t change “”“setKey(’{{ApiKey}}’,’{{Name}}’);”"" from the code with your ApiKey and Device name.
Keep whatever it is.

Moreover, while creating a product do keep as OUTPUT and GPIO pin. Don’t get confused with the image shown in the Section.

@rahul.singh1 Thank you. It helped me too.

As the Message clearly says you have not written any code for the product. So please write the code and reconnect.

Hi @rahul.singh1 I have written my code as it is… still throwing the same error :frowning: .
Also I am using google chrome. Please help!!

<!DOCTYPE html>
<html>
<head>
	<title>
	    <script type="text/javascript" src="https://cloud.boltiot.com/static/js/boltCommands.js">
        setKey('{{ApiKey}}','{{Name}}');
    </script>
        
    
	</title>
</head>
<body>
    <center>
        <button onclick="digitalWrite('0','HIGH');">ON</button>
        <button onclick="digitalWrite('0','LOW');">OFF</button>
    </center>
        
        

</body>
</html> 

Hi @muskanmotwani.1211 ,

Did you link your device with the product ? Check this link Linking device to a product

Do let me know in case you need further assistance.

Yes I have linked it to the product and configured it properly. I have followed all the instructions properly. Still it’s showing the same error!
Please help @rahul.singh1

Hi @rahul.singh1 sir now page is working fine but LED is not glowing :frowning:


Here is my circuit and the updated code:

<!DOCTYPE html>
<html>
<head>
	<title>
	    <script type="text/javascript" src="https://cloud.boltiot.com/static/js/boltCommands.js"></script>
	    <script>
        setKey('{{ApiKey}}','{{Name}}');
        </script>
        
    
	</title>
</head>
<body>
    <center>
        <button onclick="digitalWrite('0','HIGH');">ON</button>
        <button onclick="digitalWrite('0','LOW');">OFF</button>
    </center>
        
        

</body>
</html>

I faced the same issue, try logging in from cloud.boltiot.com from your PC and using your device from the website, I hope there u won’t find this problem.

Hi @muskanmotwani.1211 ,

Still on your control page, the older code is being rendered. I am able to see the below code.


<!DOCTYPE html>
<html>
<head>
	<title>
	    <script type="text/javascript" src="https://cloud.boltiot.com/static/js/boltCommands.js"></script>
	    <script>
        setKey('{{ApiKey}}','{{Name}}');
        </script>
        
    
	</title>
</head>
<body>
    <center>
        <button onclick="digitalWrite('0','HIGH');">ON</button>
        <button onclick="digitalWrite('0','LOW');">OFF</button>
    </center>
        
        

</body>

Please share the screenshot of your code from hardware configuration section.

here is the screenshot of the code:

Hi @muskanmotwani.1211 ,

You can not place the script tag inside title tag. Here is the correct code-

<!DOCTYPE html>
<html>
<head>
    <title>
        This is title
    </title>
    <script type="text/javascript" src="https://cloud.boltiot.com/static/js/boltCommands.js"></script>
    <script type="text/javascript">
    setKey('{{ApiKey}}','{{Name}}');
    </script>
        
</head>
<body>
    <center>
        <button onclick="digitalWrite('0','HIGH');">ON</button>
        <button onclick="digitalWrite('0','LOW');">OFF</button>
    </center>
</body>
</html>