Multi sensor data in one BLE service

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Multi sensor data in one BLE service

跳至解决方案
1,272 次查看
Jangra
Contributor II
How could i send multi sensor data in one BLE service for example temp, pressure, humidity ....??? MCU - MKW38
0 项奖励
回复
1 解答
1,260 次查看
nxf56274
NXP Employee
NXP Employee

Hi,

You can create multiple profile. Use different to send differnet data. Refer this link. Custom profile.

Or send the different data sequentially using one service. The program uses timer to send the data. So first time ,you send the temperature. Second time, you send the other data.

Or you can combine these data. For example, you can define a 32 bit variable. The high 16 bit uses for temperature, and the low 16 bit use for humidity. Then send this 32 bit variable. You will get two different data.

Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 days after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,261 次查看
nxf56274
NXP Employee
NXP Employee

Hi,

You can create multiple profile. Use different to send differnet data. Refer this link. Custom profile.

Or send the different data sequentially using one service. The program uses timer to send the data. So first time ,you send the temperature. Second time, you send the other data.

Or you can combine these data. For example, you can define a 32 bit variable. The high 16 bit uses for temperature, and the low 16 bit use for humidity. Then send this 32 bit variable. You will get two different data.

Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 days after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复
1,252 次查看
Jangra
Contributor II

Hi,

Thank you for your response.

 I have used  one service with multi characteristics for multi sensor data, so is it good way to do like this ???

0 项奖励
回复
1,235 次查看
nxf56274
NXP Employee
NXP Employee

Hi,

Sure. multiple characteristics. I forget mentioning it. 

Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 days after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

1,230 次查看
Jangra
Contributor II

Thank you .

0 项奖励
回复