Hey I'm new to react :) , trying to get response from write function. I tried the function below.
const response = BleManager.write(
"XX:XX:XX:XX:XX:XX,
'XXXXXXXX-0000-XXXX-XXXX-XXXXXXXXXXXX',
'XXXXXXXX-0000-XXXX-XXXX-XXXXXXXXXXXX',
data,
35,
)
.then(() => {
console.log(`*******************************Sent ${data}`);
})
.catch((error) => {
console.log(error);
});
console.log(response);
The result is below: The write function shows the return but can't find where it stores the info.