I using BLE (Bluetooth Low Energy) and can not send anything alse to APP, just String. What I trying to do is readout serial bits 11111110 and send them as Integer to APP.
Using BLE_server Arduino Example from the Arduino ESP32 library.
Based on Neil Kolban example for IDF: https://github.com/nkolban/ESP32_BLE_Arduino/tree/master/examples
Ported to Arduino ESP32 by Evandro Copercini
updates by chegewara