This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// PRIVATE - no need for permissions here | |
// private dir in internal storage: | |
Context.getFilesDir(); // system doesn't clean this memory, put sensitive user data here. Not even user can read this files | |
Context.getCacheDir(); // system will clear this when low on memory | |
// (app specific) private dir in "external"(readable by all apps with READ/WRITE_EXTERNAL_STORAGE_PERMISSION) storage | |
Context.getExternalFilesDir(); | |
Context.getExternalFilesDirs(); // plural! As of KitKat it returns "external" directory folder, but also one from the SD card | |
Context.getExternalCacheDir(); | |
Context.getExternalCacheDirs(); // same here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var mongoose = require('mongoose') | |
let dbURI = 'localhost:27017/laimdb' | |
var timeToWaitOnConnection = 3000 // 3sec | |
var maxTimeToWaitOnConnection = 30000 // 30sec | |
mongoose.connection.on('error', function (error) { | |
console.error('Error in MongoDb connection: ' + error) | |
mongoose.disconnect() // force disconnect since connection.readyState is still 1 | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0x00ce9F958957f1f8A0059f36004f8aF9E4814006 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
"id": "4b69ebbb.ef6144", | |
"type": "modbus-getter", | |
"z": "a0a135f0.1c2668", | |
"name": "Hz", | |
"showStatusActivities": true, | |
"showErrors": true, | |
"unitid": "1", | |
"dataType": "HoldingRegister", | |
"adr": "272", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
"id": "e52504bc.b70398", | |
"type": "tab", | |
"label": "Flow 1" | |
}, { | |
"id": "fa569fa9.8b626", | |
"type": "tls-config", | |
"z": "", | |
"name": "Server Cert Only", | |
"cert": "", |