Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(bluefox) change interface of getDevices functions
(bluefox) change interface of createChannel functions
- Loading branch information
1 parent
ce32fb7
commit 8a3b7fb
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1710,7 +1710,7 @@ function Adapter(options) { | |
native: _native | ||
}; | ||
|
||
that.setObject(channelName, obj, options, callback); | ||
that.setObjectNotExists(channelName, obj, options, callback); | ||
}; | ||
|
||
that.createState = function createState(parentDevice, parentChannel, stateName, roleOrCommon, _native, options, callback) { | ||
|
@@ -2183,11 +2183,12 @@ function Adapter(options) { | |
}); | ||
}; | ||
|
||
that.getDevices = function getDevices(callback, options) { | ||
that.getDevices = function getDevices(options, callback) { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Apollon77
Collaborator
|
||
if (typeof options === 'function') { | ||
callback = options; | ||
options = null; | ||
} | ||
|
||
that.objects.getObjectView('system', 'device', {startkey: that.namespace + '.', endkey: that.namespace + '.\u9999'}, options, function (err, obj) { | ||
if (callback) { | ||
if (obj.rows.length) { | ||
|
3 comments
on commit 8a3b7fb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
siehe Kommentar. ACHTUNG INKOMPATIBEL!!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super, dass mehr Augen auf den Code achten :)
24b5c4c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gern doch :-)
Willst Du wirklich die Reihenfolge drehen? Bedeutet: ALLE Adapter die das nutzen gehen nicht mehr! Finde ich sehr gefährlich weil es inkompatibel ist!