Enhanced the Example for the API Method getPadID and make the return value consistent to other functions

This commit is contained in:
Stephan Jauernick 2014-05-31 11:53:44 +02:00
parent fffdde0c59
commit d42a9eb3a6
1 changed files with 2 additions and 2 deletions

View File

@ -645,7 +645,7 @@ getPadID(roID) returns the padID of a pad based on the readonlyID(roID)
Example returns:
{code: 0, message:"ok", data: null}
{code: 0, message:"ok", data: {padID: padID}}
{code: 1, message:"padID does not exist", data: null}
*/
exports.getPadID = function(roID, callback)
@ -661,7 +661,7 @@ exports.getPadID = function(roID, callback)
}
else
{
callback(null, {PadID: padID});
callback(null, {padID: padID});
}
});
}