Run the Sample Application
MVI56E-LDM ♦ ControlLogix Platform
Quick Start Guide
ThingWorx® Add-On
Page 22 of 49
ProSoft Technology, Inc.
6.4
Configuration of the Sample Application
The configuration file
config.json,
in JSON format, should be edited manually
(access it over FTP using a client such as WinSCP
TM
).
There are only a few changes needed for the sample application.
6.4.1 Set the Host
Set the IP address of the Host ThingWorx server. From the PC, open a
command prompt and ping the ThingWorx hosted server URL
. The server’s IP
address will be used for this parameter.
6.4.2 Set the AppKey
Set the AppKey of the ThingWorx server.
When using the hosted ThingWorx evaluation server, no additional configuration
changes are necessary.
6.4.3 Structure of the Configuration File
This is a description of the elements of the configuration file.
TwServer
Settings required to connect to the ThingWorx server:
Host
– Defines host name or IP address of the server;
If the module is not connected to the Internet where ThingWorx server
runs, this can be the IP address of the PC in the local network where
forwarding of local traffic to the Internet is configured using port-
forwarding.
Port
– Port number.
Timeout
– Connection timeout in ms.
UseHttps
– Optional parameter. If set to ‘0’, directs to use http protocol. If
non-zero, use https protocol. Helpful in cases when port number is not
standard port used by http or https.
DisableCertificateValidation
– If set to a non-zero value, eliminates
certificate validation. Useful to enable connections to server with self-
signed certificate or with a certificate which is issued by root CA certificate
not set in
root_ca.cer
file.
RootCaFileName
– Path to file with root CA certificate in Base-64
encoded PEM format. Default file name is
root_ca.cer
, located in the
same folder as sample application.
ConnectionRetryCount
– Number of connection retries. It is
recommended to leave default value 1.
AppKey
– Application key. Specific for each instance of the ThingWorx
server.
Содержание MVI56E-LDM
Страница 16: ...MVI56E LDM ControlLogix Platform Quick Start Guide ThingWorx Add On Page 16 of 49 ProSoft Technology Inc...
Страница 18: ...MVI56E LDM ControlLogix Platform Quick Start Guide ThingWorx Add On Page 18 of 49 ProSoft Technology Inc...
Страница 28: ...MVI56E LDM ControlLogix Platform Quick Start Guide ThingWorx Add On Page 28 of 49 ProSoft Technology Inc...