You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param {string} pattern string in form 'adapter.0.*' or like this
3200
+
* @param {string} pattern string in form 'adapter.0.*' or like this. It can be array of IDs too.
3201
3201
* @param {object} options optional argument to describe the user context
3202
3202
* @param {function} callback return result function (err, states) {}, where states is an object like {"ID1": {"val": 1, "ack": true}, "ID2": {"val": 2, "ack": false}, ...}
3203
3203
*/
@@ -3210,6 +3210,24 @@ function Adapter(options) {
3210
3210
that.getForeignStates(pattern,options,callback);
3211
3211
};
3212
3212
3213
+
/**
3214
+
* Read all states of all adapters (and system states), that pass the pattern
3215
+
*
3216
+
* Allows to read all states of current adapter according to pattern. To read all states of current adapter use:
3217
+
* <pre><code>
3218
+
* adapter.getStates('*', function (err, states) {
3219
+
* for (var id in states) {
3220
+
* adapter.log.debug('"' + id + '" = "' + states[id].val);
3221
+
* }
3222
+
* });
3223
+
* </code></pre>
3224
+
*
3225
+
* @alias getForeignStates
3226
+
* @memberof Adapter
3227
+
* @param {string} pattern string in form 'adapter.0.*' or like this. It can be array of IDs too.
3228
+
* @param {object} options optional argument to describe the user context
3229
+
* @param {function} callback return result function (err, states) {}, where states is an object like {"ID1": {"val": 1, "ack": true}, "ID2": {"val": 2, "ack": false}, ...}
0 commit comments