I'm using:
function startScan()
{
showMessage('Scan in progress.');
evothings.eddystone.startScan(
['XXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXXX'],
function(beacon)
{
// Update beacon data.
beacon.timeStamp = Date.now();
beacons[beacon.address] = beacon;
},
function(error)
{
showMessage('Eddystone scan error: ' + error);
});
}
But it doesn't works, returning this error:
Error in Success callbackId: BLEXXXX : TypeError: win is not a function
Uncaught TypeError: win is not a function
I'm using: function startScan() { showMessage('Scan in progress.'); evothings.eddystone.startScan( ['XXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXXX'], function(beacon) { // Update beacon data. beacon.timeStamp = Date.now(); beacons[beacon.address] = beacon; }, function(error) { showMessage('Eddystone scan error: ' + error); }); } But it doesn't works, returning this error: Error in Success callbackId: BLEXXXX : TypeError: win is not a function Uncaught TypeError: win is not a function
What am I doing wrong?