Device View Not Found

@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>


Still LED is not glowing

Hi @muskanmotwani.1211 ,

As discussed over the call, this issue is resolved.

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

1 Like

May I ask you why we cannot close title tag after that becoz everything that we are writing in script tag will become title?? Is it?

Hi @muskanmotwani.1211,

You can only put the text content inside a title tag. You can not put another html tag inside the title tag. Check this link to know more about HTML title tag!

1 Like

Oh!! Okayy
Thank You :)))

Hi sir @rahul.singh1 can you please answer my query here Putty shows network error
I am stuck :woozy_face:

@muskanmotwani.1211 I have replied over there.

This error comes when there is error in your JS or HTML code that you have used for designing the outer end display of your designed IOT device. Just go to the ‘CODE’ section of of your IOT project, check your code for the error and deploy it. The problem will be solved