On Linux, calling periph.WriteCharacteristic(characteristic, []byte{...}, true) after the connection to periph has been closed blocks indefinitely. This makes it impossible to guarantee we can let the goroutine calling WriteCharacteristic know when to stop calling it. Returning an error on write seems like better behavior.
Happy new year!
On Linux, calling
periph.WriteCharacteristic(characteristic, []byte{...}, true)
after the connection toperiph
has been closed blocks indefinitely. This makes it impossible to guarantee we can let the goroutine callingWriteCharacteristic
know when to stop calling it. Returning an error on write seems like better behavior.