Am using this library for connecting and communicating with a Bluetooth device such as bulb, headset. Am able to connect to a headset and play audio on certain event like a specific socket event. Till this all is good. But when I try to connect to a smartwatch over Bluetooth am able to initiate a connection and retrieve the services.
From the services some have property like Notify, Indicate, Read, Write
When using the service which supports Write and try to write a data there is no indication on Smart Watch regarding it.
also how can we initiate a indication(vibration/ring) in connected smart watch from our mobile app.
Am I doing something wrong. Can anyone guide me on this please.
// code
const handleWriteData = () => {
BleManager.write(smartWatchId.id, 'fee7', 'fec7', data)
.then(() => {
// Success code
console.log('Writed: ' + data);
})
.catch(error => {
// Failure code
console.log(error);
});
};
EDIT 1
Any indication like ring or vibrate on when we use Write method from ReactNative. Also when I call the retrieve Services, getting a list of peripheral characteristics but unable to identify the purpose of each characteristics.
Is there any link or doc available to indicate the purpose of characteristics