Bluetooth outputStream is getting null when the FAB is clicked
I am currently trying to develop an Android app to communicate Android with ESP32 using Bluetooth Serial Communication (SPP) but there is an issue I cannot figure out for almost a week; I am very new in this category, so I need help, the ESP32 is trying to send a sensor data via Bluetooth to the Android device, this part is working as expected, I could write the essential code so the data retrieving is succeeded with an almost good approach, but when I try to send a sample request from Android app to the ESP32 using a FAB setOnClickistener, the outputStream constantly getting null and the communication disrupt so the ESP doesn’t get anything, I don’t know what is happening here,