I have 2 ESP32 device. One acting as a BLE server and the other acting as a BLE client. The server is receiving temperature data from DHT22 and it will send the data to the client every 5 minutes through the notify() function. When the client received the notification of the data, it will display the temperature in the serial monitor. However, the value shown in the serial monitor can either be the temperature or the temperature with special characters. I cannot understand why there is an inconsistency in the temperature data.
BLE_server_DHT22.ino (4.78 KB)
BLE_client_DHt22.ino (5.69 KB)