Skip to content

Commit

Permalink
Fixed API doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mwittig committed Jun 18, 2016
1 parent dd0e146 commit b9c10ae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
5 changes: 2 additions & 3 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,15 +162,14 @@ Schedules a given function which will not be called as long as it
* **Number** *delay* - delay in milliseconds
* **Function** *fn* - function to be called

## generateDeviceId([framework], prefix, framework, [lastId])
## generateDeviceId(framework, prefix, [lastId])

Generates a new device id which is not yet in use by another device

### Params:

* *[framework]* - the pimatic framework object.
* **Object** *framework* - the pimatic framework object.
* **String** *prefix* - a prefix string to be used as part of device id.
* **Integer** *framework* - the pimatic framework object.
* **String** *[lastId]* - the lastId returned by generateDeviceId

### Return:
Expand Down
3 changes: 1 addition & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,8 @@ module.exports = function(env) {

/*
Generates a new device id which is not yet in use by another device
@param {*} [framework] - the pimatic framework object.
@param {Object} framework - the pimatic framework object.
@param {String} prefix - a prefix string to be used as part of device id.
@param {Integer} framework - the pimatic framework object.
@param {String} [lastId] - the lastId returned by generateDeviceId
@returns {String} the id generated or undefined if id could not be generated
*/
Expand Down
3 changes: 1 addition & 2 deletions src/index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,8 @@ module.exports = (env) ->

###
Generates a new device id which is not yet in use by another device
@param {*} [framework] - the pimatic framework object.
@param {Object} framework - the pimatic framework object.
@param {String} prefix - a prefix string to be used as part of device id.
@param {Integer} framework - the pimatic framework object.
@param {String} [lastId] - the lastId returned by generateDeviceId
@returns {String} the id generated or undefined if id could not be generated
###
Expand Down

0 comments on commit b9c10ae

Please sign in to comment.