alsmanager_lib 1.0.57 → 1.0.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/modules.js CHANGED
@@ -1154,7 +1154,7 @@ function getDevicesSelect(db_used, search_type, inv_code, dev_type, marca, is_PN
1154
1154
  // End Device select
1155
1155
  // Device Select by site
1156
1156
  function getDevicesSelectBySiteSQLite(id_site) {
1157
- var query = "select devices.id, devices.type as Tipo, devices.manifacturer as Marca, devices.model as modello, ";
1157
+ var query = "select distinct devices.id, devices.type as Tipo, devices.manifacturer as Marca, devices.model as modello, ";
1158
1158
  query += "case ";
1159
1159
  query += "when inv_ict3_number != '' and inv_ict3_number is not null then inv_ict3_number ";
1160
1160
  query += "when inv_pnrr_number != '' and inv_pnrr_number is not null then inv_pnrr_number ";
@@ -1215,7 +1215,7 @@ function getDevicesSelectBySite(db_used, id_site) {
1215
1215
  //End Device Select by site
1216
1216
  // Device per plesso
1217
1217
  function getDevicesSelectByPlaceSQLite(id_place) {
1218
- var query = "select devices.id, devices.type as Tipo, devices.manifacturer as Marca, devices.model as modello, ";
1218
+ var query = "select distinct devices.id, devices.type as Tipo, devices.manifacturer as Marca, devices.model as modello, ";
1219
1219
  query += "case ";
1220
1220
  query += "when inv_ict3_number != '' and inv_ict3_number is not null then inv_ict3_number ";
1221
1221
  query += "when inv_pnrr_number != '' and inv_pnrr_number is not null then inv_pnrr_number ";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alsmanager_lib",
3
- "version": "1.0.57",
3
+ "version": "1.0.58",
4
4
  "description": "Funzioni per ALSManager",
5
5
  "license": "ISC",
6
6
  "author": "Luca Cattani",
@@ -0,0 +1,596 @@
1
+ /**
2
+ * Node-RED Settings created at Thu, 14 Nov 2024 15:58:58 GMT
3
+ *
4
+ * It can contain any valid JavaScript code that will get run when Node-RED
5
+ * is started.
6
+ *
7
+ * Lines that start with // are commented out.
8
+ * Each entry should be separated from the entries above and below by a comma ','
9
+ *
10
+ * For more information about individual settings, refer to the documentation:
11
+ * https://nodered.org/docs/user-guide/runtime/configuration
12
+ *
13
+ * The settings are split into the following sections:
14
+ * - Flow File and User Directory Settings
15
+ * - Security
16
+ * - Server Settings
17
+ * - Runtime Settings
18
+ * - Editor Settings
19
+ * - Node Settings
20
+ *
21
+ **/
22
+
23
+ module.exports = {
24
+
25
+ /*******************************************************************************
26
+ * Flow File and User Directory Settings
27
+ * - flowFile
28
+ * - credentialSecret
29
+ * - flowFilePretty
30
+ * - userDir
31
+ * - nodesDir
32
+ ******************************************************************************/
33
+
34
+ /** The file containing the flows. If not set, defaults to flows_<hostname>.json **/
35
+ flowFile: "flows.json",
36
+
37
+ /** By default, credentials are encrypted in storage using a generated key. To
38
+ * specify your own secret, set the following property.
39
+ * If you want to disable encryption of credentials, set this property to false.
40
+ * Note: once you set this property, do not change it - doing so will prevent
41
+ * node-red from being able to decrypt your existing credentials and they will be
42
+ * lost.
43
+ */
44
+ credentialSecret: false,
45
+
46
+ /** By default, the flow JSON will be formatted over multiple lines making
47
+ * it easier to compare changes when using version control.
48
+ * To disable pretty-printing of the JSON set the following property to false.
49
+ */
50
+ flowFilePretty: true,
51
+
52
+ /** By default, all user data is stored in a directory called `.node-red` under
53
+ * the user's home directory. To use a different location, the following
54
+ * property can be used
55
+ */
56
+ //userDir: '/home/nol/.node-red/',
57
+
58
+ /** Node-RED scans the `nodes` directory in the userDir to find local node files.
59
+ * The following property can be used to specify an additional directory to scan.
60
+ */
61
+ //nodesDir: '/home/nol/.node-red/nodes',
62
+
63
+ /*******************************************************************************
64
+ * Security
65
+ * - adminAuth
66
+ * - https
67
+ * - httpsRefreshInterval
68
+ * - requireHttps
69
+ * - httpNodeAuth
70
+ * - httpStaticAuth
71
+ ******************************************************************************/
72
+
73
+ /** To password protect the Node-RED editor and admin API, the following
74
+ * property can be used. See https://nodered.org/docs/security.html for details.
75
+ */
76
+
77
+ adminAuth: {
78
+ "type": "credentials",
79
+ "users": [
80
+ {
81
+ "username": "nodered",
82
+ "password": "$2y$08$Kqp2OFXhfMn/fGi5rjqFW.8vxyK3jcArNxmuS3.lW5GGflvijji.O",
83
+ "permissions": "*"
84
+ }
85
+ ]
86
+ },
87
+
88
+ /** The following property can be used to enable HTTPS
89
+ * This property can be either an object, containing both a (private) key
90
+ * and a (public) certificate, or a function that returns such an object.
91
+ * See http://nodejs.org/api/https.html#https_https_createserver_options_requestlistener
92
+ * for details of its contents.
93
+ */
94
+
95
+ /** Option 1: static object */
96
+ //https: {
97
+ // key: require("fs").readFileSync('privkey.pem'),
98
+ // cert: require("fs").readFileSync('cert.pem')
99
+ //},
100
+
101
+ /** Option 2: function that returns the HTTP configuration object */
102
+ // https: function() {
103
+ // // This function should return the options object, or a Promise
104
+ // // that resolves to the options object
105
+ // return {
106
+ // key: require("fs").readFileSync('privkey.pem'),
107
+ // cert: require("fs").readFileSync('cert.pem')
108
+ // }
109
+ // },
110
+
111
+ /** If the `https` setting is a function, the following setting can be used
112
+ * to set how often, in hours, the function will be called. That can be used
113
+ * to refresh any certificates.
114
+ */
115
+ //httpsRefreshInterval : 12,
116
+
117
+ /** The following property can be used to cause insecure HTTP connections to
118
+ * be redirected to HTTPS.
119
+ */
120
+ //requireHttps: true,
121
+
122
+ /** To password protect the node-defined HTTP endpoints (httpNodeRoot),
123
+ * including node-red-dashboard, or the static content (httpStatic), the
124
+ * following properties can be used.
125
+ * The `pass` field is a bcrypt hash of the password.
126
+ * See https://nodered.org/docs/security.html#generating-the-password-hash
127
+ */
128
+ //httpNodeAuth: {user:"user",pass:"$2a$08$zZWtXTja0fB1pzD4sHCMyOCMYz2Z6dNbM6tl8sJogENOMcxWV9DN."},
129
+ //httpStaticAuth: {user:"user",pass:"$2a$08$zZWtXTja0fB1pzD4sHCMyOCMYz2Z6dNbM6tl8sJogENOMcxWV9DN."},
130
+
131
+ /*******************************************************************************
132
+ * Server Settings
133
+ * - uiPort
134
+ * - uiHost
135
+ * - apiMaxLength
136
+ * - httpServerOptions
137
+ * - httpAdminRoot
138
+ * - httpAdminMiddleware
139
+ * - httpAdminCookieOptions
140
+ * - httpNodeRoot
141
+ * - httpNodeCors
142
+ * - httpNodeMiddleware
143
+ * - httpStatic
144
+ * - httpStaticRoot
145
+ * - httpStaticCors
146
+ ******************************************************************************/
147
+
148
+ /** the tcp port that the Node-RED web server is listening on */
149
+ uiPort: process.env.PORT || 1880,
150
+
151
+ /** By default, the Node-RED UI accepts connections on all IPv4 interfaces.
152
+ * To listen on all IPv6 addresses, set uiHost to "::",
153
+ * The following property can be used to listen on a specific interface. For
154
+ * example, the following would only allow connections from the local machine.
155
+ */
156
+ //uiHost: "127.0.0.1",
157
+
158
+ /** The maximum size of HTTP request that will be accepted by the runtime api.
159
+ * Default: 5mb
160
+ */
161
+ //apiMaxLength: '5mb',
162
+
163
+ /** The following property can be used to pass custom options to the Express.js
164
+ * server used by Node-RED. For a full list of available options, refer
165
+ * to http://expressjs.com/en/api.html#app.settings.table
166
+ */
167
+ //httpServerOptions: { },
168
+
169
+ /** By default, the Node-RED UI is available at http://localhost:1880/
170
+ * The following property can be used to specify a different root path.
171
+ * If set to false, this is disabled.
172
+ */
173
+ //httpAdminRoot: '/admin',
174
+
175
+ /** The following property can be used to add a custom middleware function
176
+ * in front of all admin http routes. For example, to set custom http
177
+ * headers. It can be a single function or an array of middleware functions.
178
+ */
179
+ // httpAdminMiddleware: function(req,res,next) {
180
+ // // Set the X-Frame-Options header to limit where the editor
181
+ // // can be embedded
182
+ // //res.set('X-Frame-Options', 'sameorigin');
183
+ // next();
184
+ // },
185
+
186
+ /** The following property can be used to set addition options on the session
187
+ * cookie used as part of adminAuth authentication system
188
+ * Available options are documented here: https://www.npmjs.com/package/express-session#cookie
189
+ */
190
+ // httpAdminCookieOptions: { },
191
+
192
+ /** Some nodes, such as HTTP In, can be used to listen for incoming http requests.
193
+ * By default, these are served relative to '/'. The following property
194
+ * can be used to specify a different root path. If set to false, this is
195
+ * disabled.
196
+ */
197
+ //httpNodeRoot: '/red-nodes',
198
+
199
+ /** The following property can be used to configure cross-origin resource sharing
200
+ * in the HTTP nodes.
201
+ * See https://github.com/troygoode/node-cors#configuration-options for
202
+ * details on its contents. The following is a basic permissive set of options:
203
+ */
204
+ //httpNodeCors: {
205
+ // origin: "*",
206
+ // methods: "GET,PUT,POST,DELETE"
207
+ //},
208
+
209
+ /** If you need to set an http proxy please set an environment variable
210
+ * called http_proxy (or HTTP_PROXY) outside of Node-RED in the operating system.
211
+ * For example - http_proxy=http://myproxy.com:8080
212
+ * (Setting it here will have no effect)
213
+ * You may also specify no_proxy (or NO_PROXY) to supply a comma separated
214
+ * list of domains to not proxy, eg - no_proxy=.acme.co,.acme.co.uk
215
+ */
216
+
217
+ /** The following property can be used to add a custom middleware function
218
+ * in front of all http in nodes. This allows custom authentication to be
219
+ * applied to all http in nodes, or any other sort of common request processing.
220
+ * It can be a single function or an array of middleware functions.
221
+ */
222
+ //httpNodeMiddleware: function(req,res,next) {
223
+ // // Handle/reject the request, or pass it on to the http in node by calling next();
224
+ // // Optionally skip our rawBodyParser by setting this to true;
225
+ // //req.skipRawBodyParser = true;
226
+ // next();
227
+ //},
228
+
229
+ /** When httpAdminRoot is used to move the UI to a different root path, the
230
+ * following property can be used to identify a directory of static content
231
+ * that should be served at http://localhost:1880/.
232
+ * When httpStaticRoot is set differently to httpAdminRoot, there is no need
233
+ * to move httpAdminRoot
234
+ */
235
+ //httpStatic: '/home/nol/node-red-static/', //single static source
236
+ /**
237
+ * OR multiple static sources can be created using an array of objects...
238
+ * Each object can also contain an options object for further configuration.
239
+ * See https://expressjs.com/en/api.html#express.static for available options.
240
+ * They can also contain an option `cors` object to set specific Cross-Origin
241
+ * Resource Sharing rules for the source. `httpStaticCors` can be used to
242
+ * set a default cors policy across all static routes.
243
+ */
244
+ //httpStatic: [
245
+ // {path: '/home/nol/pics/', root: "/img/"},
246
+ // {path: '/home/nol/reports/', root: "/doc/"},
247
+ // {path: '/home/nol/videos/', root: "/vid/", options: {maxAge: '1d'}}
248
+ //],
249
+
250
+ /**
251
+ * All static routes will be appended to httpStaticRoot
252
+ * e.g. if httpStatic = "/home/nol/docs" and httpStaticRoot = "/static/"
253
+ * then "/home/nol/docs" will be served at "/static/"
254
+ * e.g. if httpStatic = [{path: '/home/nol/pics/', root: "/img/"}]
255
+ * and httpStaticRoot = "/static/"
256
+ * then "/home/nol/pics/" will be served at "/static/img/"
257
+ */
258
+ //httpStaticRoot: '/static/',
259
+
260
+ /** The following property can be used to configure cross-origin resource sharing
261
+ * in the http static routes.
262
+ * See https://github.com/troygoode/node-cors#configuration-options for
263
+ * details on its contents. The following is a basic permissive set of options:
264
+ */
265
+ //httpStaticCors: {
266
+ // origin: "*",
267
+ // methods: "GET,PUT,POST,DELETE"
268
+ //},
269
+
270
+ /** The following property can be used to modify proxy options */
271
+ // proxyOptions: {
272
+ // mode: "legacy", // legacy mode is for non-strict previous proxy determination logic (node-red < v4 compatible)
273
+ // },
274
+
275
+ /*******************************************************************************
276
+ * Runtime Settings
277
+ * - lang
278
+ * - runtimeState
279
+ * - diagnostics
280
+ * - logging
281
+ * - contextStorage
282
+ * - exportGlobalContextKeys
283
+ * - externalModules
284
+ ******************************************************************************/
285
+
286
+ /** Uncomment the following to run node-red in your preferred language.
287
+ * Available languages include: en-US (default), ja, de, zh-CN, zh-TW, ru, ko
288
+ * Some languages are more complete than others.
289
+ */
290
+ // lang: "de",
291
+
292
+ /** Configure diagnostics options
293
+ * - enabled: When `enabled` is `true` (or unset), diagnostics data will
294
+ * be available at http://localhost:1880/diagnostics
295
+ * - ui: When `ui` is `true` (or unset), the action `show-system-info` will
296
+ * be available to logged in users of node-red editor
297
+ */
298
+ diagnostics: {
299
+ /** enable or disable diagnostics endpoint. Must be set to `false` to disable */
300
+ enabled: true,
301
+ /** enable or disable diagnostics display in the node-red editor. Must be set to `false` to disable */
302
+ ui: true,
303
+ },
304
+ /** Configure runtimeState options
305
+ * - enabled: When `enabled` is `true` flows runtime can be Started/Stopped
306
+ * by POSTing to available at http://localhost:1880/flows/state
307
+ * - ui: When `ui` is `true`, the action `core:start-flows` and
308
+ * `core:stop-flows` will be available to logged in users of node-red editor
309
+ * Also, the deploy menu (when set to default) will show a stop or start button
310
+ */
311
+ runtimeState: {
312
+ /** enable or disable flows/state endpoint. Must be set to `false` to disable */
313
+ enabled: false,
314
+ /** show or hide runtime stop/start options in the node-red editor. Must be set to `false` to hide */
315
+ ui: false,
316
+ },
317
+ /** Configure the logging output */
318
+ logging: {
319
+ /** Only console logging is currently supported */
320
+ console: {
321
+ /** Level of logging to be recorded. Options are:
322
+ * fatal - only those errors which make the application unusable should be recorded
323
+ * error - record errors which are deemed fatal for a particular request + fatal errors
324
+ * warn - record problems which are non fatal + errors + fatal errors
325
+ * info - record information about the general running of the application + warn + error + fatal errors
326
+ * debug - record information which is more verbose than info + info + warn + error + fatal errors
327
+ * trace - record very detailed logging + debug + info + warn + error + fatal errors
328
+ * off - turn off all logging (doesn't affect metrics or audit)
329
+ */
330
+ level: "info",
331
+ /** Whether or not to include metric events in the log output */
332
+ metrics: false,
333
+ /** Whether or not to include audit events in the log output */
334
+ audit: false
335
+ }
336
+ },
337
+
338
+ /** Context Storage
339
+ * The following property can be used to enable context storage. The configuration
340
+ * provided here will enable file-based context that flushes to disk every 30 seconds.
341
+ * Refer to the documentation for further options: https://nodered.org/docs/api/context/
342
+ */
343
+ //contextStorage: {
344
+ // default: {
345
+ // module:"localfilesystem"
346
+ // },
347
+ //},
348
+
349
+ /** `global.keys()` returns a list of all properties set in global context.
350
+ * This allows them to be displayed in the Context Sidebar within the editor.
351
+ * In some circumstances it is not desirable to expose them to the editor. The
352
+ * following property can be used to hide any property set in `functionGlobalContext`
353
+ * from being list by `global.keys()`.
354
+ * By default, the property is set to false to avoid accidental exposure of
355
+ * their values. Setting this to true will cause the keys to be listed.
356
+ */
357
+ exportGlobalContextKeys: false,
358
+
359
+ /** Configure how the runtime will handle external npm modules.
360
+ * This covers:
361
+ * - whether the editor will allow new node modules to be installed
362
+ * - whether nodes, such as the Function node are allowed to have their
363
+ * own dynamically configured dependencies.
364
+ * The allow/denyList options can be used to limit what modules the runtime
365
+ * will install/load. It can use '*' as a wildcard that matches anything.
366
+ */
367
+ externalModules: {
368
+ // autoInstall: false, /** Whether the runtime will attempt to automatically install missing modules */
369
+ // autoInstallRetry: 30, /** Interval, in seconds, between reinstall attempts */
370
+ // palette: { /** Configuration for the Palette Manager */
371
+ // allowInstall: true, /** Enable the Palette Manager in the editor */
372
+ // allowUpdate: true, /** Allow modules to be updated in the Palette Manager */
373
+ // allowUpload: true, /** Allow module tgz files to be uploaded and installed */
374
+ // allowList: ['*'],
375
+ // denyList: [],
376
+ // allowUpdateList: ['*'],
377
+ // denyUpdateList: []
378
+ // },
379
+ // modules: { /** Configuration for node-specified modules */
380
+ // allowInstall: true,
381
+ // allowList: [],
382
+ // denyList: []
383
+ // }
384
+ },
385
+
386
+
387
+ /*******************************************************************************
388
+ * Editor Settings
389
+ * - disableEditor
390
+ * - editorTheme
391
+ ******************************************************************************/
392
+
393
+ /** The following property can be used to disable the editor. The admin API
394
+ * is not affected by this option. To disable both the editor and the admin
395
+ * API, use either the httpRoot or httpAdminRoot properties
396
+ */
397
+ //disableEditor: false,
398
+
399
+ /** Customising the editor
400
+ * See https://nodered.org/docs/user-guide/runtime/configuration#editor-themes
401
+ * for all available options.
402
+ */
403
+ editorTheme: {
404
+ /** The following property can be used to set a custom theme for the editor.
405
+ * See https://github.com/node-red-contrib-themes/theme-collection for
406
+ * a collection of themes to chose from.
407
+ */
408
+ //theme: "",
409
+
410
+ /** To disable the 'Welcome to Node-RED' tour that is displayed the first
411
+ * time you access the editor for each release of Node-RED, set this to false
412
+ */
413
+ //tours: false,
414
+
415
+ palette: {
416
+ /** The following property can be used to order the categories in the editor
417
+ * palette. If a node's category is not in the list, the category will get
418
+ * added to the end of the palette.
419
+ * If not set, the following default order is used:
420
+ */
421
+ //categories: ['subflows', 'common', 'function', 'network', 'sequence', 'parser', 'storage'],
422
+ },
423
+ projects: {
424
+ /** To enable the Projects feature, set this value to true */
425
+ enabled: true,
426
+ workflow: {
427
+ /** Set the default projects workflow mode.
428
+ * - manual - you must manually commit changes
429
+ * - auto - changes are automatically committed
430
+ * This can be overridden per-user from the 'Git config'
431
+ * section of 'User Settings' within the editor
432
+ */
433
+ mode: "manual"
434
+ }
435
+ },
436
+
437
+ codeEditor: {
438
+ /** Select the text editor component used by the editor.
439
+ * As of Node-RED V3, this defaults to "monaco", but can be set to "ace" if desired
440
+ */
441
+ lib: "monaco",
442
+ options: {
443
+ /** The follow options only apply if the editor is set to "monaco"
444
+ *
445
+ * theme - must match the file name of a theme in
446
+ * packages/node_modules/@node-red/editor-client/src/vendor/monaco/dist/theme
447
+ * e.g. "tomorrow-night", "upstream-sunburst", "github", "my-theme"
448
+ */
449
+ //theme: "vs",
450
+ /** other overrides can be set e.g. fontSize, fontFamily, fontLigatures etc.
451
+ * for the full list, see https://microsoft.github.io/monaco-editor/docs.html#interfaces/editor.IStandaloneEditorConstructionOptions.html
452
+ */
453
+ //fontSize: 14,
454
+ //fontFamily: "Cascadia Code, Fira Code, Consolas, 'Courier New', monospace",
455
+ //fontLigatures: true,
456
+ }
457
+ },
458
+ markdownEditor: {
459
+ mermaid: {
460
+ /** enable or disable mermaid diagram in markdown document
461
+ */
462
+ enabled: true
463
+ }
464
+ },
465
+
466
+ multiplayer: {
467
+ /** To enable the Multiplayer feature, set this value to true */
468
+ enabled: false
469
+ },
470
+ },
471
+
472
+ /*******************************************************************************
473
+ * Node Settings
474
+ * - fileWorkingDirectory
475
+ * - functionGlobalContext
476
+ * - functionExternalModules
477
+ * - functionTimeout
478
+ * - nodeMessageBufferMaxLength
479
+ * - ui (for use with Node-RED Dashboard)
480
+ * - debugUseColors
481
+ * - debugMaxLength
482
+ * - debugStatusLength
483
+ * - execMaxBufferSize
484
+ * - httpRequestTimeout
485
+ * - mqttReconnectTime
486
+ * - serialReconnectTime
487
+ * - socketReconnectTime
488
+ * - socketTimeout
489
+ * - tcpMsgQueueSize
490
+ * - inboundWebSocketTimeout
491
+ * - tlsConfigDisableLocalFiles
492
+ * - webSocketNodeVerifyClient
493
+ ******************************************************************************/
494
+
495
+ /** The working directory to handle relative file paths from within the File nodes
496
+ * defaults to the working directory of the Node-RED process.
497
+ */
498
+ //fileWorkingDirectory: "",
499
+
500
+ /** Allow the Function node to load additional npm modules directly */
501
+ functionExternalModules: true,
502
+
503
+ /** Default timeout, in seconds, for the Function node. 0 means no timeout is applied */
504
+ functionTimeout: 0,
505
+
506
+ /** The following property can be used to set predefined values in Global Context.
507
+ * This allows extra node modules to be made available with in Function node.
508
+ * For example, the following:
509
+ * functionGlobalContext: { os:require('os') }
510
+ * will allow the `os` module to be accessed in a Function node using:
511
+ * global.get("os")
512
+ */
513
+ functionGlobalContext: {
514
+ os:require('os'),
515
+ getmac:require('getmac'),
516
+ alsmanager_lib:require('alsmanager_lib'),
517
+ },
518
+
519
+ /** The maximum number of messages nodes will buffer internally as part of their
520
+ * operation. This applies across a range of nodes that operate on message sequences.
521
+ * defaults to no limit. A value of 0 also means no limit is applied.
522
+ */
523
+ //nodeMessageBufferMaxLength: 0,
524
+
525
+ /** If you installed the optional node-red-dashboard you can set it's path
526
+ * relative to httpNodeRoot
527
+ * Other optional properties include
528
+ * readOnly:{boolean},
529
+ * middleware:{function or array}, (req,res,next) - http middleware
530
+ * ioMiddleware:{function or array}, (socket,next) - socket.io middleware
531
+ */
532
+ //ui: { path: "ui" },
533
+
534
+ /** Colourise the console output of the debug node */
535
+ //debugUseColors: true,
536
+
537
+ /** The maximum length, in characters, of any message sent to the debug sidebar tab */
538
+ debugMaxLength: 1000,
539
+
540
+ /** The maximum length, in characters, of status messages under the debug node */
541
+ //debugStatusLength: 32,
542
+
543
+ /** Maximum buffer size for the exec node. Defaults to 10Mb */
544
+ //execMaxBufferSize: 10000000,
545
+
546
+ /** Timeout in milliseconds for HTTP request connections. Defaults to 120s */
547
+ //httpRequestTimeout: 120000,
548
+
549
+ /** Retry time in milliseconds for MQTT connections */
550
+ mqttReconnectTime: 15000,
551
+
552
+ /** Retry time in milliseconds for Serial port connections */
553
+ serialReconnectTime: 15000,
554
+
555
+ /** Retry time in milliseconds for TCP socket connections */
556
+ //socketReconnectTime: 10000,
557
+
558
+ /** Timeout in milliseconds for TCP server socket connections. Defaults to no timeout */
559
+ //socketTimeout: 120000,
560
+
561
+ /** Maximum number of messages to wait in queue while attempting to connect to TCP socket
562
+ * defaults to 1000
563
+ */
564
+ //tcpMsgQueueSize: 2000,
565
+
566
+ /** Timeout in milliseconds for inbound WebSocket connections that do not
567
+ * match any configured node. Defaults to 5000
568
+ */
569
+ //inboundWebSocketTimeout: 5000,
570
+
571
+ /** To disable the option for using local files for storing keys and
572
+ * certificates in the TLS configuration node, set this to true.
573
+ */
574
+ //tlsConfigDisableLocalFiles: true,
575
+
576
+ /** The following property can be used to verify WebSocket connection attempts.
577
+ * This allows, for example, the HTTP request headers to be checked to ensure
578
+ * they include valid authentication information.
579
+ */
580
+ //webSocketNodeVerifyClient: function(info) {
581
+ // /** 'info' has three properties:
582
+ // * - origin : the value in the Origin header
583
+ // * - req : the HTTP request
584
+ // * - secure : true if req.connection.authorized or req.connection.encrypted is set
585
+ // *
586
+ // * The function should return true if the connection should be accepted, false otherwise.
587
+ // *
588
+ // * Alternatively, if this function is defined to accept a second argument, callback,
589
+ // * it can be used to verify the client asynchronously.
590
+ // * The callback takes three arguments:
591
+ // * - result : boolean, whether to accept the connection or not
592
+ // * - code : if result is false, the HTTP error status to return
593
+ // * - reason: if result is false, the HTTP reason string to return
594
+ // */
595
+ //},
596
+ }