Adding new receiver and sender modules manually can be achieved in two ways:
- extending associated JSON configuration file with new module definition
- creating new JSON configuration and run new module separately
Extending existing module configuration
Receiver and Sender JSON configuration file allows to define array of Receivers/Senders as follows:
{ "receivers": [ { "license": "n5NkzaEOALzvGs7LOExyAulYdqo8X+5==", "name": "Receiver 01", "host": "localhost", "port": 8001, "bodyLimit": 2097152, ... { "license": "n5NkzaEOALzvGs7LOExyAulYdqo8X+5==", "name": "Another receiver", ... } ] }
Specifying the port is optional. If not specified, first available port will be selected automatically.
Running new module
Second option is to run new module in separate JVM. This requires creating new configuration files - config.json and cluster.xml. See Configuring IoT Controller for more details.
Once both files are available, you can start the module using starup command defined in Receiver configuration or Sender configuration. E.g.:
Error rendering macro 'code': Invalid value specified for parameter 'com.atlassian.confluence.ext.code.render.InvalidValueException'java -Dapplication.name=receiver-1 -Dvertx.hazelcast.config=cluster.xml -Dfile.encoding=UTF8 -jar iot-collector-generic-receiver-x.y.z.jar -conf config.json
Overview
Content Tools