The Everyware Device Cloud (EDC) connector allows connected Things to communicate with Servitly through the Everyware Device Cloud IoT middleware provided by Eurotech.
First of all, the EDC plugin must be enabled by entering the Administration / Plugins page.
The EDC plugin allows configuring whether to retrieve data through an MQTT subscription or via API. This choice depends on how the EDC instance has been configured (generally MQTT).
Once the plugin has been enabled, for each business entity level (tenant, customer, location, or thing), it is possible to configure the EDC connector.
The EDC type means the EDC connector.
The Base REST URL is the base URL to access the EDC REST API.
Username and password are the same used to access the Everyware Cloud console.
MQTT Broker URL and Account Name can be retrieved directly within the Everyware Cloud console
Thing Provisioning Policy
The optional Thing Provisioning Policy property allows defining the way the connected things are discovered by the system.
The PLUG_AND_PLAY policy is used to automatically discover connected things, and generally must be used in case there are multiple things connected to the same gateway.
Inspecting the values of some predefined metrics Servitly can discover which are the connected things, and if missing they will be automatically added to the location.
Referring to the image below, it uses the "ICM-V2/registry" topic and the relative "printerList" metric.
The Asset Ids property is a comma-separated list of gateway IDs, in this way is possible to define which are the gateways available on a certain location.
Thing Connection Mapping
The thing mapping allows defining how the thing is configured under the gateway.
The Assed Id represents the gateway ID connected to the thing.
The Path represents the topic part used to identify the thing under the gateway, it depends on how the gateway has been configured.
It can be discovered by inspecting the Everyware Cloud console.
Within the Data section, select the By Asset tab, search the asset id (in this case 8030DCBC1BAF), select the first metric, press the Query button, and then copy the topic part related to the printer (in this case ICM-V2/QZYJZ95).