This fixes the inability to read scratch characteristics. Users have reported that the value returned is always null. This is because the callback provided does not have the correct parameter signature... it needs to be callback(error, data). I figured this out by digging through about ~8 layers of abstraction until finally it's passed all way into the noble characteristic .read() call.
@raykamp @aderhgawen
This fixes the inability to read scratch characteristics. Users have reported that the value returned is always
null
. This is because the callback provided does not have the correct parameter signature... it needs to becallback(error, data)
. I figured this out by digging through about ~8 layers of abstraction until finally it's passed all way into thenoble
characteristic.read()
call.