Configure a Push Agent

Add the Push Agent NetLogic from Template Libraries and configure the parameters of the Push Agent.

Prerequisites

  1. Set the default code editor.

  2. Install the MQTTNet and NewtonSoft.Json packages. See NuGet packages.

    Tip: You can check the required libraries versions in the Push Agent description in Template Libraries.
To configure a Push Agent
  1. From the main toolbar, select Template Libraries.
  2. In Template Libraries, search for Push Agent.
  3. Under Components, drag Push Agent onto NetLogic in Project view.
  4. Select Close.
  5. In Project view, select Push Agent.
  6. In Properties, edit the Push Agent properties.
    For more information, see Push Agent properties.
  7. In Project view, double-click Push Agent.

    An external editor opens in a separate tab.

  8. Build the project.
  • Generate CA and client certificates. See Create a certificate.

    Important: Use the newest OpenSSL library and encryption algorithm supported in .NET to generate the PFX certificates. If you use the RC2 algorithm to generate the PFX certificate, certificate-based authentication for Azure IoT Hub fails on the terminal.
  • Implement the PushAgent NetLogic into the application interface. See Push Agent interface.