From 52deb2b04cebab904bc4a76f2d0cf5bf0d9e1cff Mon Sep 17 00:00:00 2001 From: Jeff Rasmussen Date: Tue, 1 Jan 2019 19:26:16 -0700 Subject: [PATCH] Add beacon mac address to the discover event --- lib/bleacon.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/bleacon.js b/lib/bleacon.js index a2f4f76..9792c6d 100644 --- a/lib/bleacon.js +++ b/lib/bleacon.js @@ -118,6 +118,7 @@ Bleacon.prototype.onDiscover = function(peripheral) { bleacon.rssi = rssi; bleacon.accuracy = accuracy; bleacon.proximity = proximity; + bleacon.address = peripheral.address; this._discovered[peripheral.uuid] = bleacon;