Multi sensor data in one BLE service

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Multi sensor data in one BLE service

Jump to solution
861 Views
Jangra
Contributor II
How could i send multi sensor data in one BLE service for example temp, pressure, humidity ....??? MCU - MKW38
0 Kudos
1 Solution
849 Views
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.
-------------------------------------------------------------------------------

View solution in original post

0 Kudos
4 Replies
850 Views
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 Kudos
841 Views
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 Kudos
824 Views
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.
-------------------------------------------------------------------------------

819 Views
Jangra
Contributor II

Thank you .

0 Kudos