Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1.  Launch VS Code.

  2. In VS Code, select File.Open Folder, and navigate to your local copy of the repo folder: ..\smartserver-iot\apps\Dsp SP Controller Example\dspSPController 

  3. In the VS Code,  select View.Terminal, in the terminal window type: npm install.  Your development computer needs an internet connection fro for this command to succeed.

  4. Open the file .vscode\lauch.json.  You need to make adjustments as shown in the following screenshot:
  5. Click the Bug icon in the left side navigation tool and the Start Debug icon to run the application.  Before taking this action, you my want to set a break point or two in dsp-sp-cntl_A.js.
    The following screenshot shows the expected results:
  6. If you return to the CMS, you will observe the existence for a new device, myDev.1 in the Device widget.  It should appear with a green background to indicate the device is provisioned.  If the icon has a blue background, use the Device widget to test the device.

...