how send string LoPy4 to LoPy4 over Bluetooth LE
Hello, I am trying to send text strings between LoPy's using Bluetooth LE, they are already connected, one configured as a client and another as a server, use the example of the manual: https://docs.pycom.io/chapter/firmwareapi/ pycom / network / bluetooth / for the client to read the services and characteristics of the server, but the only thing I want is to be able to send a text string from the server, and be answered by the client. the project will try to send a received string from an app to the lopy.I'm sure it's a simple thing to do but I do not have much knowledge of Python or BLE. I would appreciate your help.
I'm sure it's a simple thing to do but I do not have much knowledge of Python or BLE. I would appreciate your help.
@manuelc1318 as I wrote, you can transmit data in both directions: write to a characteristic to send data from client to server, and either read from a characteristic or use notifications for data from server to client.
So, is not possible bidirectional communication? my idea is do a kind of chat, over ble is not possible?
@manuelc1318 haven’t tried with a LoPy, but the basic principle for communication over BLE is to write to a characteristic (client -> server) and either read or get notifications for server -> client.