IntPtr[] extensionList = new IntPtr[device.ServiceCount];
Marshal.Copy (device.ServiceUuidList, extensionList, 0, device.ServiceCount);
uuidList = new Collection<string> ();
+ Log.Info(Globals.LogTag, "UUID Count: " + device.ServiceCount);
foreach (IntPtr extension in extensionList) {
- if (extension != IntPtr.Zero)
- {
+ if (extension != IntPtr.Zero) {
string uuid = Marshal.PtrToStringAnsi (extension, UuidLengthMax);
+ Log.Info(Globals.LogTag, "UUID: " + uuid);
uuidList.Add (uuid);
}
}
}
resultDevice.RemoteDeviceAddress = device.Address;
- if (device.Name != IntPtr.Zero)
+ if (device.Name != IntPtr.Zero) {
resultDevice.RemoteDeviceName = Marshal.PtrToStringAnsi(device.Name, DeviceNameLengthMax);
+ Log.Info(Globals.LogTag, "Device Name: " + resultDevice.RemoteDeviceName);
+ }
resultDevice.RemoteDeviceClass = new BluetoothClass();
resultDevice.Class.MajorType = device.Class.MajorDeviceClassType;
resultDevice.Class.MinorType = device.Class.MinorDeviceClassType;
IntPtr[] extensionList = new IntPtr[structDevice.ServiceCount];
Marshal.Copy (structDevice.ServiceUuidList, extensionList, 0, structDevice.ServiceCount);
uuidList = new Collection<string> ();
+ Log.Info(Globals.LogTag, "UUID Count: " + structDevice.ServiceCount);
foreach (IntPtr extension in extensionList) {
- if (extension != IntPtr.Zero)
- {
+ if (extension != IntPtr.Zero) {
string uuid = Marshal.PtrToStringAnsi(extension, UuidLengthMax);
+ Log.Info(Globals.LogTag, "UUID: " + uuid);
uuidList.Add(uuid);
}
}
}
resultDevice.RemoteDeviceAddress = structDevice.Address;
- if (structDevice.Name != IntPtr.Zero)
+ if (structDevice.Name != IntPtr.Zero) {
resultDevice.RemoteDeviceName = Marshal.PtrToStringAnsi(structDevice.Name, DeviceNameLengthMax);
+ Log.Info(Globals.LogTag, "Device Name: " + resultDevice.RemoteDeviceName);
+ }
resultDevice.RemoteDeviceClass = new BluetoothClass();
resultDevice.Class.MajorType = structDevice.Class.MajorDeviceClassType;
IntPtr[] extensionList = new IntPtr[structData.ServiceCount];
Marshal.Copy (structData.ServiceUuid, extensionList, 0, structData.ServiceCount);
uuidList = new Collection<string> ();
+ Log.Info(Globals.LogTag, "UUID Count: " + structData.ServiceCount);
foreach (IntPtr extension in extensionList) {
string uuid = Marshal.PtrToStringAnsi (extension);
+ Log.Info(Globals.LogTag, "UUID: " + uuid);
uuidList.Add (uuid);
}
}