Open sandeepmistry opened 7 years ago
@sandeepmistry The bleno peripheral node.js app is returning as below. I do not see the string for RESULT_UNLIKELY_ERROR Doesn't this mean success? Anyway I will be also firing up our BLE sniffer and update or add another comment.
onWriteRequest
onReadRequest
onWriteRequest
@SidLeung It looks like it is confirmed, We are not reporting the error packet by the Peripheral
Analyzer files attached.
I do not see the string for RESULT_UNLIKELY_ERROR Doesn't this mean success?
@noelpaz in case it's not clear, RESULT_UNLIKELY_ERROR
is a constant mapped to the GATT error code 0x0e.
Other bleno constants include:
Characteristic.RESULT_SUCCESS = Characteristic.prototype.RESULT_SUCCESS = 0x00;
Characteristic.RESULT_INVALID_OFFSET = Characteristic.prototype.RESULT_INVALID_OFFSET = 0x07;
Characteristic.RESULT_ATTR_NOT_LONG = Characteristic.prototype.RESULT_ATTR_NOT_LONG = 0x0b;
Characteristic.RESULT_INVALID_ATTRIBUTE_LENGTH = Characteristic.prototype.RESULT_INVALID_ATTRIBUTE_LENGTH = 0x0d;
Characteristic.RESULT_UNLIKELY_ERROR = Characteristic.prototype.RESULT_UNLIKELY_ERROR = 0x0e;
Testing with the 2.0.1RC2.1 JSON:
Arduino sketch:
Node.js bleno test app:
characteristic.read()
is return true even though the GATT read request fails. I expect it to return false to indicate failure.Packet Logger trace: