Skip to content

Commit

Permalink
Remove autocast references
Browse files Browse the repository at this point in the history
  • Loading branch information
mapedraza authored Oct 9, 2023
1 parent 8e59a61 commit 346b58a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
9 changes: 2 additions & 7 deletions docs/usermanual.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,8 @@ then the NGSI v2 update uses `10`(number), `true` (boolean) and `78.8` (number)

This functionality relies on string measures casting feature implemented in the iotagent library. This functionality
uses native JavaScript [`JSON.parse()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse)
function to cast data coming from measures (as text) to JSON native types.

In order to use it, the `autocast` configuration parameter has to be set to true. Please see
[configuration section of iotagent library](https://github.com/telefonicaid/iotagent-node-lib/blob/master/doc/installationguide.md#global-configuration)
for further information.

This functionality does not change the attribute type, using the type specified in the config group or device provision.
function to cast data coming from measures (as text) to JSON native types. This functionality does not change the attribute type,
using the type specified in the config group or device provision, even if it is not consistent with the measures that are coming.

As an example, for a given measure:

Expand Down
1 change: 0 additions & 1 deletion test/unit/ngsiv2/config-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ config.amqp = {

config.iota = {
logLevel: 'FATAL',
autocast: true,
contextBroker: {
host: '192.168.1.1',
port: '1026',
Expand Down

0 comments on commit 346b58a

Please sign in to comment.