victordiaz / PHONK

PHONK is a coding playground for new and old Android devices
https://phonk.app
GNU General Public License v3.0
461 stars 25 forks source link

Sending Byte arrays through BLE #108

Closed Shibaditya99 closed 2 years ago

Shibaditya99 commented 2 years ago

Hi sir, I'm working with BLE devices with PHONK. It's an extreamly good platform. I can read / write to any BLE device. I'm facing a problem i.e. there is a device which is needed to receive a specific byte array via my android device to start. But in the PHONK's 'bleClient.write()' function allows string version of the data to write. I saw, this function convert the string value to bytes and send it to the device. But in my value, '00' is there and we know when we converting string to hex 00, It'll show nothong or NULL. So is there any method to send a whole byte array directly to the ble device? please help