- https://www.mathworks.com/help/matlab/ref/bluetooth.write.html
- https://www.mathworks.com/help/matlab/ref/bluetooth.read.html
Receiving string data over BLE
    5 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Ajay Raj K
 el 10 de Mzo. de 2021
  
    
    
    
    
    Respondida: Gargi Patil
    
 el 12 de Abr. de 2021
            I am trying to send data from a bluetooth server, in my case an ESP32 microcontroller and collect the data in matlab over BLE. The data transfer happens as bits. Presently I am sending the chrecteristic and reading it, the same way in matlab tutorials, but the data transfer is as bits. Is there an option to send 'string' as 'string' in matlab.
0 comentarios
Respuesta aceptada
  Gargi Patil
    
 el 12 de Abr. de 2021
        I understand that you would like to transfer data between a Bluetooth Server and BLE as strings. 
To send and read the data as strings, you can use write() & read() if the number of characters to be transferred is available. You can refer to the following documentation for further details:  
You can also use the pair writeline() and readline() by setting the terminator as follows: 
configureTerminator(device,"CR") 
The following documentation can be referred to for further information:  
0 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

