We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0c7887 commit d898542Copy full SHA for d898542
gattc_darwin.go
@@ -175,6 +175,14 @@ func (c *DeviceCharacteristic) UUID() UUID {
175
return c.uuidWrapper
176
}
177
178
+// Write replaces the characteristic value with a new value. The
179
+// call will return after all data has been written.
180
+func (c DeviceCharacteristic) Write(p []byte) (n int, err error) {
181
+ c.service.device.prph.WriteCharacteristic(p, c.characteristic, true)
182
+
183
+ return len(p), nil
184
+}
185
186
// WriteWithoutResponse replaces the characteristic value with a new value. The
187
// call will return before all data has been written. A limited number of such
188
// writes can be in flight at any given time. This call is also known as a
0 commit comments