2020-07-17 14:17:23 -07:00
2020-06-01 13:22:04 -07:00
2020-06-01 13:22:04 -07:00
2020-06-01 13:22:04 -07:00
2020-06-26 14:20:39 -07:00
2020-06-26 14:20:39 -07:00
2020-06-01 13:22:04 -07:00
2020-06-01 13:22:04 -07:00
2020-06-01 13:22:04 -07:00
2020-06-26 14:20:39 -07:00
2020-07-17 14:17:23 -07:00
2020-06-01 13:22:04 -07:00

Remote Provisioning Client (RPC)

RPC is an application which enables remote capabilities for AMT, such as as device activation. To accomplish this, RPC communicates with the RPS (Remote Provisioning Server).

As a prerequisite, a Local Management Service (LMS) must be installed and running on the operating system.

Linux

Steps below are for Ubuntu 18.04.

Dependencies

  • sudo apt install git cmake build-essential libboost-system-dev libboost-thread-dev libboost-random-dev libboost-regex-dev libboost-filesystem-dev libssl-dev zlib1g-dev
  • RPC requires CMake version 3.17.

Build

  • mkdir build
  • cd build
  • cmake -DCMAKE_BUILD_TYPE=Release ..
    • Build debug: cmake -DCMAKE_BUILD_TYPE=Debug ..
  • cmake --build .

Run

  • See ./rpc --help for details.
  • Example
    • sudo ./rpc --url wss://localhost:8080 --profile profile1

Windows

Steps below are for Windows 10 and Visual Studio 2019 Professional.

Dependencies

  • RPC requires CMake version 3.17, which is included with Visual Studio 2019.

Build VCPKG

Open an x64 native command prompt for Visual Studio 2019 as Administrator.

Build C++ REST SDK

Open an x64 native tools command prompt for Visual Studio 2019.

  • cd vcpkg
  • vcpkg install cpprestsdk:x64-windows-static

Build

Open an x64 native tools command prompt for Visual Studio 2019.

  • mkdir build
  • cd build
  • cmake .. -DVCPKG_TARGET_TRIPLET=x64-windows-static -DCMAKE_TOOLCHAIN_FILE=/vcpkg/scripts/buildsystems/vcpkg.cmake
  • cmake --build . --config Release
    • Build debug: cmake --build . --config Debug

Run

Open a command prompt as Administrator.

  • See rpc.exe --help for details.
  • Example
    • cd build\Release
    • rpc.exe --url wss://localhost:8080 --profile profile1
Description
string
Readme 3.5 MiB
Languages
C 88.1%
C++ 10.3%
CMake 1.1%
Batchfile 0.2%
Dockerfile 0.2%
Other 0.1%