Closed elmbrent closed 6 years ago
Have you registered the listener?
componentWillMount() {
this.onDataReadEvent = EasyBluetooth.addOnDataReadListener(this.onDataRead.bind(this));
}
Yes I have done this, nothing returned, thanks for fast reply I'm pulling my hair out lol
What you setup in bufferSize
and characterDelimiter
.
The OnDataRead
event is triggered when it founds the characterDelimiter
in the received data, or when bufferSize
is completed.
I think its actually the sending of data as I tried to remotely power down the device and got no result.
I used your example.
const config = {
"uuid": "00001101-0000-1000-8000-00805f9b34fb",
"deviceName": "Bluetooth Example Project",
"bufferSize": 1024,
"characterDelimiter": "\n"
}
Dont worry fixed! "characterDelimiter": "\r"
Cool!
How much would it cost for you to write the IOS version of this?
Please, contact me by email nassifrroma[ at ]gmail.com
Hi,
I've setup your library correctly. and it seems to work great but I don't get back a response from the write
I then wait for a response like in example with the listener and receive nothing from device.
I know the device does return data as I've built a similar app in node using bllue-serial-port which returns a message once I sent the write message.
Any ideas why this is not working, I'm out of ideas.
Thanks, Brent