File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed
UniversalBeaconLibrary/Beacon
WindowsBeacons/Strings/en-US Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -163,6 +163,8 @@ public Beacon(BeaconTypeEnum beaconType)
163163 /// the Windows Bluetooth LE API.</param>
164164 public void UpdateBeacon ( BluetoothLEAdvertisementReceivedEventArgs btAdv )
165165 {
166+ if ( btAdv == null ) return ;
167+
166168 if ( btAdv . BluetoothAddress != BluetoothAddress )
167169 {
168170 throw new BeaconException ( "Bluetooth address of beacon does not match - not updating beacon information" ) ;
Original file line number Diff line number Diff line change @@ -49,6 +49,8 @@ public class BeaconManager
4949 /// the Windows Bluetooth LE API.</param>
5050 public void ReceivedAdvertisement ( BluetoothLEAdvertisementReceivedEventArgs btAdv )
5151 {
52+ if ( btAdv == null ) return ;
53+
5254 // Check if we already know this bluetooth address
5355 foreach ( var bluetoothBeacon in BluetoothBeacons )
5456 {
Original file line number Diff line number Diff line change @@ -179,6 +179,12 @@ Make sure your device supports Bluetooth Smart (LE) and that Bluetooth is activa
179179 <data name =" LibraryUrlButton.NavigateUri" xml : space =" preserve" >
180180 <value >https://github.com/andijakl/universal-beacon</value >
181181 </data >
182+ <data name =" MajorId.Text" xml : space =" preserve" >
183+ <value >Major ID</value >
184+ </data >
185+ <data name =" MinorId.Text" xml : space =" preserve" >
186+ <value >Minor ID</value >
187+ </data >
182188 <data name =" NamespaceId.Text" xml : space =" preserve" >
183189 <value >Namespace ID: </value >
184190 </data >
@@ -236,6 +242,9 @@ Make sure your device supports Bluetooth Smart (LE) and that Bluetooth is activa
236242 <data name =" Url.Text" xml : space =" preserve" >
237243 <value >URL: </value >
238244 </data >
245+ <data name =" Uuid.Text" xml : space =" preserve" >
246+ <value >UUID</value >
247+ </data >
239248 <data name =" Version.Text" xml : space =" preserve" >
240249 <value >Version: </value >
241250 </data >
You can’t perform that action at this time.
0 commit comments