Index 'hardware' not found

I finally was able to connect an imp002 to the cloud but now I am struggling with the first Hello World :slight_smile: I copied the exact code from teh Hello World tutorial, it passes the checks, but then the logs show me this:

There is a mysterious wifi error and after the booth it spills out “hardware” not found. Any ideas?

2013-11-09 20:57:07 UTC+1: [Status] Device booting
2013-11-09 20:41:57 UTC+1: [Power State] Power state: null=>online
2013-11-09 20:41:57 UTC+1: [Status] Downloading new code
2013-11-09 20:41:58 UTC+1: [Status] firmware update triggered
2013-11-09 20:43:15 UTC+1: [Exit Code] imp OS upgraded
2013-11-09 20:43:16 UTC+1: [Power State] Power state: null=>online
2013-11-09 20:43:16 UTC+1: [Status] Downloading new code
2013-11-09 20:43:16 UTC+1: [Power State] Power state: null=>online
2013-11-09 20:43:16 UTC+1: [Status] Downloading new code
2013-11-09 20:43:16 UTC+1: [Status] Device configured to be "Blank"
2013-11-09 20:50:55 UTC+1: [Exit Code] imp restarted, reason: wifi error
2013-11-09 20:50:55 UTC+1: [Status] Device booting
2013-11-09 20:50:55 UTC+1: [Status] Device configured to be "Blank"
2013-11-09 20:51:06 UTC+1: [Status] Downloading new code
2013-11-09 20:55:46 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:55:46 UTC+1: [Agent] at main:6
2013-11-09 20:55:46 UTC+1: [Status] Downloading new code
2013-11-09 20:55:46 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:55:46 UTC+1: [Agent] at main:6
2013-11-09 20:55:47 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:55:47 UTC+1: [Agent] at main:6
2013-11-09 20:55:48 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:55:48 UTC+1: [Agent] at main:6
2013-11-09 20:55:49 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:55:49 UTC+1: [Agent] at main:6
2013-11-09 20:55:50 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:55:50 UTC+1: [Agent] at main:6
2013-11-09 20:55:51 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:55:51 UTC+1: [Agent] at main:6
2013-11-09 20:55:52 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:55:52 UTC+1: [Agent] at main:6
2013-11-09 20:55:53 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:55:53 UTC+1: [Agent] at main:6
2013-11-09 20:55:54 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:55:54 UTC+1: [Agent] at main:6
2013-11-09 20:55:55 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:55:55 UTC+1: [Agent] at main:6
2013-11-09 20:55:56 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:55:56 UTC+1: [Agent] at main:6
2013-11-09 20:55:57 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:55:57 UTC+1: [Agent] at main:6
2013-11-09 20:55:58 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:55:58 UTC+1: [Agent] at main:6
2013-11-09 20:55:59 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:55:59 UTC+1: [Agent] at main:6
2013-11-09 20:56:00 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:56:00 UTC+1: [Agent] at main:6
2013-11-09 20:56:01 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:56:01 UTC+1: [Agent] at main:6
2013-11-09 20:56:02 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:56:02 UTC+1: [Agent] at main:6
2013-11-09 20:56:03 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:56:03 UTC+1: [Agent] at main:6
2013-11-09 20:56:04 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:56:04 UTC+1: [Agent] at main:6
2013-11-09 20:56:05 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:56:05 UTC+1: [Agent] at main:6
2013-11-09 20:56:07 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:56:07 UTC+1: [Agent] at main:6
2013-11-09 20:56:08 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:56:08 UTC+1: [Agent] at main:6
2013-11-09 20:56:09 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:56:09 UTC+1: [Agent] at main:6
2013-11-09 20:56:10 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:56:10 UTC+1: [Agent] at main:6
2013-11-09 20:56:11 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:56:11 UTC+1: [Agent] at main:6
2013-11-09 20:56:12 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:56:12 UTC+1: [Agent] at main:6
2013-11-09 20:56:13 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:56:13 UTC+1: [Agent] at main:6
2013-11-09 20:56:14 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:56:14 UTC+1: [Agent] at main:6
2013-11-09 20:56:15 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:56:15 UTC+1: [Agent] at main:6
2013-11-09 20:56:16 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:56:16 UTC+1: [Agent] at main:6
2013-11-09 20:56:17 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:56:17 UTC+1: [Agent] at main:6
2013-11-09 20:56:18 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:56:18 UTC+1: [Agent] at main:6
2013-11-09 20:56:19 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:56:19 UTC+1: [Agent] at main:6
2013-11-09 20:56:20 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:56:20 UTC+1: [Agent] at main:6
2013-11-09 20:56:21 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:56:21 UTC+1: [Agent] at main:6
2013-11-09 20:56:22 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:56:22 UTC+1: [Agent] at main:6
2013-11-09 20:56:23 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:56:23 UTC+1: [Agent] at main:6
2013-11-09 20:56:24 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:56:24 UTC+1: [Agent] at main:6
2013-11-09 20:56:25 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:56:25 UTC+1: [Agent] at main:6
2013-11-09 20:56:26 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:56:26 UTC+1: [Agent] at main:6
2013-11-09 20:56:27 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:56:27 UTC+1: [Agent] at main:6
2013-11-09 20:56:28 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:56:28 UTC+1: [Agent] at main:6
2013-11-09 20:56:29 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:56:29 UTC+1: [Agent] at main:6
2013-11-09 20:56:30 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:56:30 UTC+1: [Agent] at main:6
2013-11-09 20:56:31 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:56:31 UTC+1: [Agent] at main:6
2013-11-09 20:56:32 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:56:32 UTC+1: [Agent] at main:6
2013-11-09 20:56:33 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:56:33 UTC+1: [Agent] at main:6
2013-11-09 20:56:34 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:56:34 UTC+1: [Agent] at main:6
2013-11-09 20:56:35 UTC+1: [Agent] the index ‘hardware’ does not exist
2013-11-09 20:56:35 UTC+1: [Agent] at main:6

2013-11-09 20:57:07 UTC+1: [Status] Device booting

Can we see the source code. What’s at Line 6 ?

Maybe you’ve mixed up the “Agent” code (running in our cloud servers) with the “Device” code (running on the imp itself)? The IDE gives you two panes (two editors), one for each. Only the “Device” code gets a “hardware” object – because only the imp has any hardware…

Peter