How to get bluetooth data from arduino esp32 at my Ionic App?

Viewed 32

Getting hard with receiving data at Ionic app
from ESP32

I succeeded writing string data at Ionic app to ESP32.
However, I don't know how to receive a data from ESP32 to Ionic app.

this.ble.write(this.Mac, "6E400001-B5A3-F393-E0A9-E50E24DCCA9E" , "6E400002-B5A3-F393-E0A9-E50E24DCCA9E",
      this.stringToBytes(this.data))

I can write data to ESP32 successfully with this code but I have no idea to receive data from ESP32.
If i use 'this.ble.read' function, it reads value from only specific characteristic.
I want to get data which ESP32 send with BLE.

Ex arduino sending data code)

String newValue = "test";
    pRemoteCharacteristic->writeValue(newValue.c_str(), newValue.length());

--Summary--
1) Success writing data 'Ionic app' --> 'ESP32'
2) Getting hard with receiving data 'Ionic app' <-- 'ESP32'
3) I wanna know any Ionic function for receiving BLE data

Is there any callback function to receive BLE data in Ionic?
Regards.

0 Answers
Related