From dd4096f6174e4d116796ae05230543e6846efd78 Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Sun, 21 Oct 2007 22:29:28 +0000 Subject: serial: fixed API description --- serial/serial-api.txt | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/serial/serial-api.txt b/serial/serial-api.txt index e8431ded..5ff1dfd2 100644 --- a/serial/serial-api.txt +++ b/serial/serial-api.txt @@ -114,7 +114,7 @@ Methods string GetAdapter() [experimental] Returns the TTY device node name - string GetInfo() [experimental] + dict GetInfo() [experimental] Returns the port properties. @@ -132,16 +132,20 @@ Proxy hierarchy (experimental) Interface org.bluez.serial.Proxy Object path /org/bluez/serial/rfcomm* -Methods: string Enable() [experimental] +Methods: void Enable() [experimental] Register the serial proxy service record and start listenning on the specified adapter/channel. - string Disable() [experimental] + Possible errors:org.bluez.serial.Error.Failed + + void Disable() [experimental] Unregister the service record and stop listenning. + + Possible errors:org.bluez.serial.Error.Failed - string GetInfo() [experimental] + dict GetInfo() [experimental] Returns the proxy properties void SetSerialParameters(string rate, byte databits, @@ -152,3 +156,6 @@ Methods: string Enable() [experimental] "38400", "57600" and "115200". Available data bits: 5, 6, 7 and 8. Available stop bits: 1 and 2. Available parity: "even", "odd", "mark", "space" and "none". + + Possible errors:org.bluez.serial.Error.InvalidArguments + org.bluez.serial.Error.Failed -- cgit