Configuring the Example Agent
The example-agent application uses a config.json file that contains all necessary information to connect to the ThingWorx Platform. It supports TLS and communication through a proxy. TLS is enabled by default.
If you are using TLS, you must use a CA certificate list file containing CA certificates used by the Platform and the GAS server for certificate validation.
Below is a sample of the config.json file. All fields, except for the proxy, are required fields.
{
"host": "rsee-platform.ptciot.io",
"port": 8443,
"app_key": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"thing_name": "EdgeThing",
"security": {
"tls": true,
"ca_cert_list": "./SSLCACert.pem"
},
"proxy": {
"host": "127.0.0.1",
"port": 8888,
"user": null,
"password": null
},
"offline_msg_store": {
"directory": "./offline_msg_store"
},
"file": {
"staging_dir": "./tw_staging"
},
"log_level": "info"
}