docs.unity3d.com
  • Manual
  • Scripting API
  • Changelog
  • License

    • Unity Live Systems Data
      • Installation
      • What's new
      • Upgrade guide
    • Get started
      • Take it further
    • Basic concepts
    • Configure your service
      • Add and configure user-supplied secrets
      • Associate 3D objects with source devices
      • Configure a facility device simulator
      • Configure data connectors
        • Device connectors
          • Azure IoT Hub device connector
          • Facility Simulator device connector
          • HTTP device connector
        • Telemetry connectors
          • Azure EventHub telemetry connector
    • Develop your application
      • Create environment settings
      • Create a services controller
      • Implement a telemetry history controller
    • Troubleshooting
    • Glossary
    • REST APIs

    HTTP device connector

    Use the HTTP device connector (Unity.Connector.Device.Http) when loading device definitions from an HTTP endpoint.

    Behavior

    When invoked, the HTTP device connector makes a GET request to the configured Endpoint. The connector appends the following query parameters:

    • workspaceId: the workspace associated with this connector.
    • facilityId: the facility associated with this connector.

    The connector expects a list of Device models to be returned.

    Prerequisites

    Before you configure an HTTP device connector, host an endpoint that's accessible through HTTP or HTTPS. Note: Make sure the endpoint responds to a GET request to the configured endpoint and returns device definitions in the JSON format outlined in the Models section.

    Configuration

    You configure the HTTP device connector using the Live Systems Data API.

    {
      "implementation": "Unity.Connector.Device.Http",
      "properties": {
        "Endpoint": "http://my-http-endpoint.com/devices"
      }
    }
    

    Properties

    Property Description
    Endpoint HTTP(S) URL that lists DeviceResource models in the JSON format.

    Models

    Device

    {
      "deviceId": "string",
      "deviceType": "string",
      "telemetryNames": [
        "string",
        "string"
      ],
      "properties": {
        "prop1": "string",
        "prop2": "string",
        "prop3": "string"
      }
    }
    
    Property Description Sample value
    deviceId The ID or unique name of the device on the external system.
    This property matches incoming telemetry events with this registered device.
    "turbine_1", "outlet_23", "fan_4"
    deviceType The type or category of the device. "Wind Turbine", "Electrical Outlet", "Fan"
    telemetryNames Lists the telemetry keys that the device can send.
    This property matches incoming telemetry data with telemetry keys on this registered device.
    "Power", "RPM", "Voltage"
    properties Dictionary of metadata associated with the device. "Model Number: AB1234"
    Back to top Generated by DocFX
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023