857c6e3a87d7ca720bb5af00400d50d81acc0ebb
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
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.
Build VCPKG
Open an x64 native command prompt for Visual Studio 2019 as Administrator.
- git clone --branch 2020.01 https://github.com/microsoft/vcpkg.git
- cd vcpkg
- bootstrap-vcpkg.bat
- vcpkg integrate install
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
Languages
C
88.1%
C++
10.3%
CMake
1.1%
Batchfile
0.2%
Dockerfile
0.2%
Other
0.1%