bluejay icon indicating copy to clipboard operation
bluejay copied to clipboard

Failed to write to sensor location with error: Writing is not permitted

Open hunter123321000 opened this issue 5 years ago • 1 comments
trafficstars

Summary: could not write command to device, but could read from device

Actual Result: 2020-01-13 09:43:25.884 [Bluejay] [main] > Started write to Characteristic: 0000FFB2-0000-1000-8000-00805F9B34FB, Service: 0000FFB0-0000-1000-8000-00805F9B34FB on 845E44D2-42EE-7B03-CC5D-10675DF5DB09. 2020-01-13 09:43:25.885 [Bluejay] [main] > Failed writing to Characteristic: 0000FFB2-0000-1000-8000-00805F9B34FB, Service: 0000FFB0-0000-1000-8000-00805F9B34FB on 845E44D2-42EE-7B03-CC5D-10675DF5DB09 with error: Writing is not permitted. "Failed to write to sensor location with error: Writing is not permitted." 2020-01-13 09:43:25.886 [Bluejay] [main] > Queue has removed Bluejay.WriteCharacteristic<Swift.String> because it has finished. 2020-01-13 09:43:25.886 [Bluejay] [main] > Queue is empty, nothing to update. "data: Optional("ReturnTemp:+23\n")" "return temp: 23" "data: Optional("ReturnTemp:+23\n")" "return temp: 23" "data: Optional("ReturnTemp:+23\n")" "return temp: 23" "data: Optional("ReturnTemp:+23\n")" "return temp: 23" "data: Optional("ReturnTemp:+23\n")" "return temp: 23" "data: Optional("ReturnTemp:+23\n")" "return temp: 23"

Device, Build, OS: bt 4.0, Xcode 11.3 , iOS 13.3

hunter123321000 avatar Jan 13 '20 02:01 hunter123321000

A bit late 🙈 but I fixed that issue by adding type: .withoutResponse when calling write. That's because the characteristic I was writing to was a withoutResponse characteristic.

DantePuglisi avatar May 16 '22 16:05 DantePuglisi