Registering a ThingPoint in the EMS Server

From RAD Studio
Jump to: navigation, search

Go Up to ThingPoint Overview


A ThingPoint is a stand-alone application that can run apart from the EMS Server (it may be running on a different computer).

A ThingPoint implemented with an EMS EdgeModule needs to be registered in the EMS Server to be accessed from an EMS Client Application.

A ThingPoint registers the following data in the EMS Server:

  • ModuleName. Unique name of the ThingPoint in the EMS Server.
  • Protocol. TCP protocol used to connect to the EMS Server.
  • Connection properties. Host and port where the ThingPoint service listens for requests from the EMS Server.
    • Host. Host where the ThingPoint is running.
    • Port. Port where the ThingPoint service listens for requests from the EMS Server.
  • Resource Names. Names of the resources that extend the ThingPoint functionality.

The EMS Server uses the following saved data of each ThingPoint:

  • ModuleName and Resource Name to identify a REST request from the EMS Client application that is targeted to the ThingPoint.
  • Connection properties to make REST requests to the ThingPoint.

Registering a ThingPoint in the EMS Server

You can use the following components to register a ThingPoint with EMS EdgeModules and its resources in the EMS Server.

Component Use

TEMSEdgeService

Use the AutoRegister property set to True.

TEMSClientAPI

Use the RegisterModule method.

Note: The custom resources of the ThingPoint are also registered in the EMS Server.

See Also