Skip to content

Commit f09e361

Browse files
committed
2 parents 61dca41 + f5b1078 commit f09e361

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

UniversalBeaconLibrary/Beacon/Beacon.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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");

UniversalBeaconLibrary/Beacon/BeaconManager.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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
{

WindowsBeacons/Strings/en-US/Resources.resw

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)