From bd8891090f45918de79feee743fcc97c3bebb427 Mon Sep 17 00:00:00 2001 From: Ray Kampmeier Date: Mon, 19 Jan 2015 16:57:37 -0800 Subject: [PATCH] - A "name" property assigned in the bean constructor --- lib/Bean.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Bean.js b/lib/Bean.js index 6d14287..170cc94 100644 --- a/lib/Bean.js +++ b/lib/Bean.js @@ -21,7 +21,7 @@ var Bean = function(peripheral) { this.count = 0; this.gst = new Buffer(0); - + this.name = peripheral.advertisement.localName; }; Bean.SCAN_UUIDS = [SERIAL_UUID];