接入蓝牙基本结构
This commit is contained in:
1 parent
84e8b50bbf
commit
2f84f70a5f
152 files changed
+6426
-56
No files matched your search
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Assets.Scripts.Ble.Win.CPPBridge
|
||||
{
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
internal struct GattUuid
|
||||
{
|
||||
// Token: 0x06002139 RID: 8505 RVA: 0x000896C8 File Offset: 0x000878C8
|
||||
public override string ToString()
|
||||
{
|
||||
if (!this.IsShortUuid)
|
||||
{
|
||||
return string.Format("{0:D}", this.LongUuid);
|
||||
}
|
||||
return string.Format("0x{0:X}", this.ShortUuid);
|
||||
}
|
||||
|
||||
// Token: 0x04001362 RID: 4962
|
||||
[MarshalAs(UnmanagedType.Bool)]
|
||||
public bool IsShortUuid;
|
||||
|
||||
// Token: 0x04001363 RID: 4963
|
||||
[MarshalAs(UnmanagedType.U2)]
|
||||
public ushort ShortUuid;
|
||||
|
||||
// Token: 0x04001364 RID: 4964
|
||||
public Guid LongUuid;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user