Skip to content

Commit

Permalink
fixing readmes
Browse files Browse the repository at this point in the history
  • Loading branch information
manfredipist committed Mar 26, 2024
1 parent 648bcdf commit fad6e41
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 5 deletions.
23 changes: 18 additions & 5 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,17 @@ networks:
Many settings can be configured using Docker environment variables. A typical IoT Agent Docker container is driven by
environment variables such as those shown below:
- `CONFIGURATION_TYPE` - flag indicating which configuration type to perform. Possible choices are: auto, dynamic and
static
- `CONFIG_RETRIEVAL` - flag indicating whether the incoming notifications to the IoTAgent should be processed using
the bidirectionality plugin from the latest versions of the library or the OPCUA-specific configuration retrieval
mechanism.
- `DEFAULT_KEY` - Default API Key, to use with device that have been provisioned without a Configuration Group.
- `DEFAULT_TRANSPORT` - Default transport protocol when no transport is provisioned through the Device Provisioning
API.
- `IOTA_LOGLEVEL` - Log level for iotagentnode lib
- `IOTA_TIMESTAMP` - Whether the IoTAgent will add the TimeInstant attribute to every entity created, as well as a TimeInstant metadata to each attribute, with the current timestamp
- `IOTA_TIMESTAMP` - Whether the IoTAgent will add the TimeInstant attribute to every entity created, as well as a
TimeInstant metadata to each attribute, with the current timestamp
- `IOTA_CB_HOST` - Hostname of the context broker to update context
- `IOTA_CB_PORT` - Port that context broker listens on to update context
- `IOTA_CB_NGSIVERSION` - Version of the Context Broker
Expand All @@ -147,12 +156,16 @@ environment variables such as those shown below:
- `IOTA_MONGO_DB` - The name of the database used in MongoDB
- `IOTA_SERVICE` - Default service, for IoT Agent installations that won't require preregistration
- `IOTA_SUBSERVICE` - Default subservice, for IoT Agent installations that won't require preregistration
- `IOTA_PROVIDER_URL` - URL passed to the Context Broker when commands are registered, used as a forwarding URL location when the Context Broker issues a command to a device
- `IOTA_PROVIDER_URL` - URL passed to the Context Broker when commands are registered, used as a forwarding URL
location when the Context Broker issues a command to a device
- `IOTA_DEVICEREGDURATION` - Default maximum expire date for device registrations
- `IOTA_DEFAULTTYPE` - Default type, for IoT Agent installations that won't require preregistration
- `IOTA_DEFAULTRESOURCE` - Default resource of the IoT Agent. This value must be different for every IoT Agent connecting to the IoT Manager
- `IOTA_EXPLICITATTRS` - Flag indicating whether the incoming measures to the IoTAgent should be processed as per the "attributes" field
- `IOTA_EXTENDED_FORBIDDEN_CHARACTERS` - List of characters to be filtered before forwarding any request to the Context Broker
- `IOTA_DEFAULTRESOURCE` - Default resource of the IoT Agent. This value must be different for every IoT Agent
connecting to the IoT Manager
- `IOTA_EXPLICITATTRS` - Flag indicating whether the incoming measures to the IoTAgent should be processed as per the
"attributes" field
- `IOTA_EXTENDED_FORBIDDEN_CHARACTERS` - List of characters to be filtered before forwarding any request to the
Context Broker
- `IOTA_AUTOPROVISION` - Flag indicating whether to provision the Group and Device automatically
- `IOTA_OPCUA_ENDPOINT` - Endpoint of OPC UA Server
- `IOTA_OPCUA_SECURITY_MODE` - Security mode for OPC UA connection
Expand Down
9 changes: 9 additions & 0 deletions docs/howto.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,15 @@ config.mappingTool = {
storeOutput: true,
};

/**
* flag indicating which configuration type to perform. Possible choices are:
* - auto : mappingTool will be run and runtime device mappings will be loaded
* - dynamic : device mappings from config.js will be ignored, REST API Provisioning is mandatory
* - static : device mappings from config.js will be loaded
*/

config.configurationType = "auto";

/**
* map {name: function} of extra transformations avaliable at JEXL plugin
* see https://github.com/telefonicaid/iotagent-node-lib/tree/master/doc/expressionLanguage.md#available-functions
Expand Down
4 changes: 4 additions & 0 deletions docs/opc_ua_agent_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,10 @@ services:
- "4041:4041"
- "9229:9229"
environment:
- "CONFIGURATION_TYPE=auto"
- "CONFIG_RETRIEVAL=false"
- "DEFAULT_KEY=iot"
- "DEFAULT_TRANSPORT=OPCUA"
- "IOTA_LOGLEVEL=DEBUG"
- "IOTA_TIMESTAMP=true"
- "IOTA_CB_HOST=orion"
Expand Down

0 comments on commit fad6e41

Please sign in to comment.