nativescript-community / ble

Connect to and interact with Bluetooth LE peripherals.
https://nativescript-community.github.io/ble/
MIT License
192 stars 77 forks source link

Report advertising data peripherals broadcast. #116

Closed allnash closed 4 years ago

allnash commented 5 years ago

This is easily achievable by providing it has a parameter in the Peripheral object. For example under iOS file CBCentralManagerDelegateImpl.ts

this._owner.get()._onDiscovered({
          UUID: peripheral.identifier.UUIDString,
          name: peripheral.name,
          RSSI: RSSI,
          state: this._owner.get()._getState(peripheral.state),
          manufacturerId: manufacturerId,
          manufacturerData: manufacturerData,
          rawAdvertisingData: advData
        });
      }
allnash commented 5 years ago

I have a change on my local machine, my goal is to parse that data into an Eddystone TLM/URL/EID object.

btw, appreciate keeping this repo up-to-date.