I'm having some problems trying to send and recieve data with Bluetooth Low Energy connection using UART with micropython. We have try a lot of tutorial but nothing seems to work for us. It seems that the problems is on app inventor cause when we try it on "Serial Bluetooth Terminal" app, the code on mycropython wroks perfectly but the same code doesn't send any data with app inventor.
If you mean to put it like the image above, the program doesn't show anything. We just try it and the program makes the bluetooth connection but seconds later the app closes. This is our trying code for the bluetooth connection on Thonny.
from ble_uart_peripheral import BLEUART
from machine import Pin, I2C, PWM
import bluetooth
from BLE import BLEUART
import time
import utime
from ble_simple_peripheral import BLESimplePeripheral