Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hunter123321000 opened this issue Jan 13, 2020 · 1 comment

Comments

@hunter123321000
Copy link

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

@DantePuglisi
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants