cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

AnMo_4196841
New Contributor II

Hi,

I am doing a project to show me on an LCD screen (I2C) the data that the DHT22 sensor collects.

The error I think is at the time of the notification, with the cypress APP when clicking on Notify does not change anything and doesn´t it show me the data.

I attached the programm.

I hope your answers. Thanks greetings.

0 Likes
Reply
1 Solution
Yugandhar
Moderator
Moderator

Hello,

In the project, you are trying to send the float values through the notification. But CyBle_GattsNotificationcan() accept only arrays of uint8 type. A float value may be represented in 4 bytes and you can send the Float value as an uint8 array with 4 elements.

Please let me know if this helps.

Thanks,

P Yugandhar.

View solution in original post

0 Likes
Reply
1 Reply
Yugandhar
Moderator
Moderator

Hello,

In the project, you are trying to send the float values through the notification. But CyBle_GattsNotificationcan() accept only arrays of uint8 type. A float value may be represented in 4 bytes and you can send the Float value as an uint8 array with 4 elements.

Please let me know if this helps.

Thanks,

P Yugandhar.

View solution in original post

0 Likes
Reply