IoT Projects Develop Tab

Most of what you'll be doing as an IoT Developer happens under the "Develop" tab. Here you can manage the active project's files and write, edit, or customize code. The sub-tabs at the bottom allow you to establish a connection to your device, and view logs in a serial console. This section contains an overview of the IoT-specific options in the Intel® XDK.

Note: If you see more than one tab in the XDK and your Develop tab looks different from the image of the Intel XDK below, you may be viewing the Develop tab for HTML5 Companion Apps. For an overview of the alternate tab, see Develop Overview.

Example of the application interface

For descriptions of the options, see the links below:

  • Sensor Libraries section: Allows you to browse and copy example code for communicating with sensors.
  • IoT toolbar: Gives you quick access to important commands, such as connecting to your IoT device, uploading your project to your board, and more.
  • The IoT menu: Allows you to set your board name, determine whether to upload or merge changes between your project and your board, update the libraries on your board, and more.
  • IoT console: Lets you view messages and application output, as well as connect to your board using an SSH or serial communication session.

For general information about the interface, see the documentation for the Intel® XDK:

  • Project Tab: The Projects tab provides the ability to create, import, and manage Intel® XDK projects. For a summary of project types, viewing project folders, build settings, and so on, see Projects overview.
  • Develop Tab: The Develop tab provides a built-in code editor, lists your project files and lets you explore web services, preview live source changes, and more.
  • Code Editor: The Code Editor in the Develop tab is the main interface you'll use when writing code for your project.
  • Debugging and testing: The Emulate, Test, Debug, and Profile tabs allow you to test and preview your project during development.
  • Build Tab: Use this tab to choose platforms and initiate builds to make bundles you can submit to a variety of app stores.

Sensor Libraries section

You can quickly find and use code examples for a wide variety of sensors and actuators using the Sensor Library Explorer. The Sensor Library options are in the lower left of the Intel XDK, as shown below.

Example of the Sensor Libraries section

The following options are available:

IoT toolbar

Use the IoT toolbar for quick access to your IoT device status, downloading, running, and stopping your project, and more.

The IoT toolbar

The following options are available:

  • IoT Device: From the drop-down list, select the IoT device to connect to. Devices that have made their presence known through Bonjour are automatically included in this list. The following options are also available:
  • Connection status icon: Displays the status of the connection between the Intel XDK and your IoT device:
    • Icon showing that your board is disconnected: Not connected
    • Icon showing that your board is connected: Connected, not running application
    • Icon showing device connected and project running: Connected and running application
  • Upload Upload icon or Merge Merge icon icon: Depending on the options you have selected, you can either click the Upload icon Upload icon to upload your project to your board, or click the Merge icon Merge icon to also merge project files from your board to your system. For details and steps to choose between uploading or merging changes, see Uploading, downloading, and merging changes to your project in the Intel® XDK.

    Be sure to upload any changes you have made to your project to your board before trying to run your application; otherwise, you will be running the older, unchanged version of the code.
  • Stop icon Stop icon: Stops the application currently running on your board. You can determine the amount of time the Intel XDK waits for your application to finish any cleanup processing before killing the application. For steps, see Setting the amount of time to wait for application cleanup.
  • Run icon Run icon: Runs the application currently uploaded to your board. Note that when you make changes to your project, you must upload your project to your board to see these changes reflected when you click Run. You can have the Intel XDK automatically save any changes to your project before uploading to your board, have your project automatically run when you upload it to your board, and more. For steps, see Uploading, downloading, and merging changes to your project in the Intel® XDK.
  • Debug icon Debug icon: Runs the application currently uploaded to your board and starts the debugger. Closing the debugger stops your application from running.
  • Manage your daemon/IoT device icon Manage your daemon/IoT device icon: Click this icon to bring up the IoT menu.

The IoT menu

The IoT menu allows you to set your board name, determine whether to upload or merge changes between your project and your board, update the libraries on your board, and more. Click the Manage your daemon/IoT device icon Manage your daemon/IoT device icon in the IoT toolbar to bring up the menu.

Example of the IoT menu

The following options are available:

  • Board configuration: Allows you to set options such as your board name and whether to run the application uploaded to your device automatically when the boards boots. For steps, see Setting board and project configuration options.
  • Sync PC time w/clock on target device: Sets the GMT time on the board to the GMT time on your host. This is helpful when you have different versions of a file on the host and on the target, and need to determine which version is newer.
  • Upgrade Intel xdk-daemon on IoT device: Upgrades the daemon on your board. Note that this option performs the update even if the xdk-daemon is already up-to-date. You can use this option to recover from partial corruptions of the xdk-daemon.
  • Enter arguments for IoT application: Allows you to enter command line arguments to be used when running your project. For steps and details, see Entering command line arguments for your IoT application.
  • Upload control: Allows you to select options for uploading your project to your board, merging files from the board to your project, and more. For details, see Uploading, downloading, and merging changes to your project in the Intel® XDK.
  • Update libraries on board: Updates the UPM and MRAA libraries for your board if they are out of date. Unlike the xdk-daemon update, this only updates when your libraries are out of date. For details, see Updating the libmraa and libupm libraries.
  • Set the time to allow for app cleanup: Determines the amount of time the Intel XDK waits for your application to finish any cleanup processing before ending it. For details, see Setting the amount of time to wait for application cleanup.

IoT console

The IoT console provides a quick and convenient way to view debug information and system messages, as well as create a serial or SSH session with your board without requiring a separate terminal emulator. This feature gives you command line access to a wide range of functionality useful to any serious developer, such as connecting your board to a Wi-Fi* network and setting a password for your board.

The IoT console

The following tabs are available:

For more complete information about compiler optimizations, see our Optimization Notice.