这是我找到的JSON。服务UUID是:636F6D2E-6A69-7561-6E2E-504F56313100
,特征UUID是:7274782E-6A69-7561-6E2E-504F56313100
用于从血氧计读取数据,我只有这两件事,但我不知道我需要发送什么Hex才能检索SpO2和PRbpm。
{
"name": "Pulse Oximeter",
"id": "D0:5F:B8:3D:4D:25",
"rssi": -65,
"services": [
"1800",
"1801",
"636f6d2e-6a69-7561-6e2e-504f56313100",
"180a"
],
"characteristics": [
{
"service": "1800",
"characteristic": "2a00",
"properties": [
"Read",
"WriteWithoutResponse",
"Write"
]
},
{
"service": "1800",
"characteristic": "2a01",
"properties": [
"Read"
]
},
{
"service": "1800",
"characteristic": "2a02",
"properties": [
"Read",
"Write"
]
},
{
"service": "1800",
"characteristic": "2a03",
"properties": [
"Write"
]
},
{
"service": "1800",
"characteristic": "2a04",
"properties": [
"Read"
]
},
{
"service": "1801",
"characteristic": "2a05",
"properties": [
"Indicate"
],
"descriptors": [
{
"uuid": "2902"
}
]
},
{
"service": "636f6d2e-6a69-7561-6e2e-504f56313100",
"characteristic": "7274782e-6a69-7561-6e2e-504f56313100",
"properties": [
"WriteWithoutResponse",
"Write",
"Notify"
],
"descriptors": [
{
"uuid": "2902"
},
{
"uuid": "2901"
}
]
},
{
"service": "180a",
"characteristic": "2a23",
"properties": [
"Read"
]
},
{
"service": "180a",
"characteristic": "2a24",
"properties": [
"Read"
]
},
{
"service": "180a",
"characteristic": "2a25",
"properties": [
"Read"
]
},
{
"service": "180a",
"characteristic": "2a26",
"properties": [
"Read"
]
},
{
"service": "180a",
"characteristic": "2a27",
"properties": [
"Read"
]
},
{
"service": "180a",
"characteristic": "2a28",
"properties": [
"Read"
]
},
{
"service": "180a",
"characteristic": "2a29",
"properties": [
"Read"
]
},
{
"service": "180a",
"characteristic": "2a2a",
"properties": [
"Read"
]
},
{
"service": "180a",
"characteristic": "2a50",
"properties": [
"Read"
]
},
{
"service": "180a",
"characteristic": "2a30",
"properties": [
"Read"
]
},
{
"service": "180a",
"characteristic": "2a31",
"properties": [
"Read"
]
}
]
}
答案 0 :(得分:1)
ihealthlabs SDK和文档可在此处https://github.com/iHealthDeviceLabs/iHealthDeviceLabs-Android获取。还有免费的示例项目,您可以使用它从文档中给出的受支持列表中检索数据(SpO2和PRbpm)