Adding tests file and adjusting meshblu definitions

This commit is contained in:
Felipe Nipo
2015-09-19 23:59:04 -03:00
parent b562f0ac0d
commit 291f69d01c
2 changed files with 132 additions and 9 deletions
+9 -9
View File
@@ -26,15 +26,6 @@ declare module Meshblu {
interface Connection {
/**
*
* @param uuid
* @param fn The callback to be called. It should take one parameter, err,
* which will be null if there was no problem, and one parameter, publicKey,
* of type NodeRSA.
*/
getPublicKey(uuid: string, fn:(err: Error, publicKey: any) => void): void;
/**
* Authenticate with Meshblu.
* @returns This Connection.
@@ -166,6 +157,15 @@ declare module Meshblu {
*/
revokeToken(data: ConnectionOptions, fn:(result: Device) => void): void
/**
*
* @param uuid
* @param fn The callback to be called. It should take one parameter, err,
* which will be null if there was no problem, and one parameter, publicKey,
* of type NodeRSA.
*/
getPublicKey(uuid: string, fn:(err: Error, publicKey: any) => void): void;
/*
* Lack of documentation about these api functions.
*/