User Tools

Site Tools


how_to_run_sample

HOW TO RUN A SAMPLE

Path to sample client

1. Change the working directory to:

  <IOTIVITY_ROOT>/out/linux/<target_arch>/<build_type>/bridging

2. Bridging folder consists of all the plugin folders and also an mpm_client folder.

3. Change directory to mpm_client

Path to plugin shared library

Each plugin has its .so file generated at the location:

  <IOTIVITY_ROOT>/out/linux/<target_arch>/<build_type>/

Load a plugin

To load a specific plugin, issue the command given below

  ./client_name <security flag> <path to plugin shared library>/lib<plugin_name>plugin.so
  Security flag                   : -n (for running IoTvity in non-secured mode).
  NOTE: To run in **SECURED** mode no flag is required.
  eg:
      ./mpmsampleclient –n ../../libXplugin.so [To run in NON_SECURED mode]
      ./mpmsampleclient  ../../libXplugin.so [To run in SECURED mode]
                            

For more details, please refer to README present in the mpm_client folder

  <IOTIVITY_ROOT>/bridging/mpm_client/

Each plugin has its own README in the respective plugin folder which talks about how to run the plugin. These README files should be referred before running any specific plugin.

how_to_run_sample.txt · Last modified: 2017/02/16 10:13 by Tony Mathew