[Bluetooth] Add a way to validate more parameters
authorVinicius Costa Gomes <vinicius.gomes@intel.com>
Fri, 25 Oct 2013 21:15:40 +0000 (19:15 -0200)
committerVinicius Costa Gomes <vinicius.gomes@intel.com>
Tue, 29 Oct 2013 18:00:41 +0000 (16:00 -0200)
commit050cc36136c90b2b0fef351c188536a7ba9a4b70
tree28c1f308a12a8cac197b7cc956ca4bc6abeb3340
parent4409087315b2ad5ac2f10ad7afbddb904647d7e0
[Bluetooth] Add a way to validate more parameters

In many cases, an parameter with type 'object' is passed, and this
object is expected to have some parameters. We should be able to
verify that this object has the correct type of attributes.

Also add a simple Bluetooth address validator, using a simple regular
expression.
bluetooth/bluetooth_api.js