Install Visual Studio 2015 or Visual Studio 2013. All editions, including the free Community Edition, are supported.
Note: Ensure “C++ Common Tools” is selected. This option can be found under Programming languages → Visual C++ → Common Tools for Visual C++.
Install dependencies from the web and add to PATH
The following is an example command to update your PATH for building IoTivity, assuming all dependencies have been installed to their default locations on a 64-bit machine. Note: this command must be run from an administrator command prompt:
setx PATH %PATH%;C:\Python27\;C:\Python27\Scripts;C:\Program Files\CMake\bin;C:\Program Files\7-Zip
*Note: may have to set up proxy for https
Open a Command Prompt and use the “run.bat” convenience script to call into SCons.
Or call into SCons directly.
scons TARGET_OS=windows TARGET_ARCH=amd64 \ RELEASE=0 WITH_RA=0 TARGET_TRANSPORT=IP SECURED=1 WITH_TCP=0 \ BUILD_SAMPLE=ON LOGGING=OFF TEST=1
|SimpleServer and SimpleClient||A basic sample for hosting, discovering and performing GET, PUT, POST and OBSERVE operations on a resource. We recommend that you start with these two apps.|
|MediaServer and WinUIClient||WinUIClient is a Win32 GUI application for managing the MediaServer application. MediaServer is an application that allows remote control over the PC running the app: specifically volume and playback (play/pause) control|
|ProvisioningClient SampleServer_JustWorks SampleServer_RandomPin||Example for demonstrating Provisioning Manager|
|OCServer and OCClient||An advanced version of SimpleServer/SimpleClient for hosting, discovering and performing GET, PUT, POST and OBSERVE operations on a resource. Allows user to specify 1 of 20 different sequences.|
Source code location of the sample code:
Provisioning Source code location of the sample code:
OCServer/OCClient Source code location of the sample code (works on Windows from this directory):