Click here to Skip to main content
15,885,665 members
Articles / Internet of Things
Article

Creating a new IoT C/C++ project

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
18 Nov 2016CPOL4 min read 12.8K   6  
This topic contains steps to create a new IoT project in the Intel® System Studio IoT Edition for the Intel® Edison board, Intel® Galileo board, or Minnowboard MAX board.

This article is for our sponsors at CodeProject. These articles are intended to provide you with information on products and services that we consider useful and of value to developers

Get access to the new Intel® IoT Developer Kit, a complete hardware and software solution that allows developers to create exciting new solutions with the Intel® Galileo and Intel® Edison boards. Visit the Intel® Developer Zone for IoT.

This topic contains steps to create a new IoT project in the Intel® System Studio IoT Edition for the Intel® Edison board, Intel® Galileo board, or Minnowboard MAX board.

For steps to create a new C or C++ project that sends data from your board to the cloud, see Creating a new IoT C/C++ Cloud project.

For steps to create a project for Intel® IoT gateway devices, see Creating a new IoT Gateway C/C++ project.

For steps for the Intel® Joule™ development platform, see the Intel® Joule™ Module User Guide.

Requirements

Creating a new IoT project

This section contains steps to create a simple project using an existing code sample. By the end of this section, you should have a new project that blinks the LED on your IoT board.

  1. Choose Intel® IoT > Create a new Intel® project. The Create a new Project page displays.
  2. When prompted to select a platform type, choose the board you are using from the list. Click Next.
    Image 1
  3. When prompted to select a project type, select Intel® IoT C++ Project. Click Next.

    Image 2
  4. The proper target OS should be chosen by default. Click Next.

    Image 3
  5. Type a unique name in the Connection Name field.

    Image 4
  6. If you know your board's IP address, type it in the Target name or IP address field. If you don't know the IP address, you can click Search Target to search for a list of available targets on your network and select your connection from the results. Click OK or Next.
    Note: The Search Target feature is not available for Intel® Joule™ development platform yet; you'll need to type the IP address manually for this type of development platform.

    Image 5
  7. Enter the name of the project in the Name field. In the Project list, select the type of project to create. A short description of the selected project type is displayed under Project Description. Click Next.

    Image 6
  8. Click Finish.
  9. If asked to create any new directories, click Yes to proceed. You may need to enter your login password.

    Image 7
  10. Your project is created and displayed. If asked whether you want to install platform support for the type of board you selected, click Yes to proceed. This may take several minutes.

    Image 8

To run a project

  1. From the Run drop-down list in the toolbar, select the name of your project.

    Image 9
  2. In the User ID field, type the user name to log in to your board.
  3. In the Password field, type the password for your board.

    Image 10
  4. If a warning message about host authenticity displays, click Yes to upload and run your project.

    Image 11
  5. Your project runs. When finished, click the Terminate icon from the Console panel to end the currently running process and clear the contents of your sketches folder.

    Image 12

Creating a new project from an IoT example

  1. Choose Intel® IoT > Import IoT Examples. The Intel System Studio IoT Edition Examples tab opens, with a list of project examples grouped by programming language.
  2. In the list of examples, browse for and select the example to use.

    A description of the selected example is displayed on the Description tab. You can preview the code for the example by clicking the Code tab.

    Image 13
  3. Click Import. The Create a new project based on an example dialog box opens.
  4. Select the appropriate options for your board type and connection. Finally, type a name for the new project in the Name field, then click Finish. Your project is created and displayed in the Project Explorer panel.

    Image 14

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
You may know us for our processors. But we do so much more. Intel invents at the boundaries of technology to make amazing experiences possible for business and society, and for every person on Earth.

Harnessing the capability of the cloud, the ubiquity of the Internet of Things, the latest advances in memory and programmable solutions, and the promise of always-on 5G connectivity, Intel is disrupting industries and solving global challenges. Leading on policy, diversity, inclusion, education and sustainability, we create value for our stockholders, customers and society.
This is a Organisation

42 members

Comments and Discussions

 
-- There are no messages in this forum --