0

Hi i need to write the following to my BLE device, it actually enable the device to send the data back or notify of the values. However after several attempts and changing the type of the data to be sent which is actually.

0xFD-0xFD-0xFA-0x05-0x0D-0x0A

i am not able to enable the device. Using the nRF application, i can write these directly which enable the device as well. i know i need to use the byte array but i am not sure how should i add these to byte array. and when i add them directly to the

writeCharacteristic(characteristic);

it does not work at all.

1 Answer 1

0

The following code is the perfect and workable answer for the question posted. If any one is seeing it then please use the link below How do I initialize a byte array in Java?

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.