B4R Question [SOLVED] ESP32 BLE IOS Send Data Problem

tzfpg

Active Member
Licensed User
Longtime User
i follow the instruction from this link BLE Chat with ESP32,
i setup ESP32, android and ios, ESP32 and android run smooth and no problem.
ios can connect to ESP32 and Receive the data from ESP32 but when i send data to ESP32,
ESP32 can't receive the data.

i attach two small projects, please help me test and see what wrong in my code.
Thank you.
 

Attachments

  • B4R_BLE.zip
    2.4 KB · Views: 205
  • B4I_BLE.zip
    9.7 KB · Views: 211
Last edited:

tzfpg

Active Member
Licensed User
Longtime User
I already solved the problem
IOS code
B4X:
manager.WriteData (gService.ToUpperCase, gCharWrite.ToUpperCase, xByte )
change to
B4X:
manager.WriteDataWithResponse(gService.ToUpperCase, gCharWrite.ToUpperCase, xByte )

Thank you.
 
Upvote 0

Filippo

Expert
Licensed User
Longtime User
I already solved the problem
IOS code
B4X:
manager.WriteData (gService.ToUpperCase, gCharWrite.ToUpperCase, xByte )
change to
B4X:
manager.WriteDataWithResponse(gService.ToUpperCase, gCharWrite.ToUpperCase, xByte )

Thank you.
Thank you, I have had exactly the same problem and it has helped perfectly.
 
Upvote 0
Top