Home | History | Annotate | Download | only in doc
      1 BlueZ D-Bus Serial API description
      2 **********************************
      3 
      4 Copyright (C) 2004-2010  Marcel Holtmann <marcel (a] holtmann.org>
      5 
      6 
      7 Serial hierarchy
      8 ================
      9 
     10 Service		org.bluez
     11 Interface	org.bluez.Serial
     12 Object path	[variable prefix]/{hci0,hci1,...}/dev_XX_XX_XX_XX_XX_XX
     13 
     14 Methods		string Connect(string pattern)
     15 
     16 			Connects to a specific RFCOMM based service on a
     17 			remote device and then creates a RFCOMM TTY
     18 			device for it. The RFCOMM TTY device is returned.
     19 
     20 			Possible patterns: UUID 128 bit as string
     21 					   Profile short names, e.g: spp, dun
     22 					   RFCOMM channel as string, 1-30
     23 
     24 			Possible errors: org.bluez.Error.InvalidArguments
     25 					 org.bluez.Error.InProgress
     26 					 org.bluez.Error.ConnectionAttemptFailed
     27 					 org.bluez.Error.NotSupported
     28 
     29 		void Disconnect(string device)
     30 
     31 			Disconnect a RFCOMM TTY device that has been
     32 			created by Connect method.
     33 
     34 			To abort a connection attempt in case of errors or
     35 			timeouts in the client it is fine to call this method.
     36 
     37 			In that case one of patterns of the Connect method should
     38 			be suplied instead of the TTY device.
     39 
     40 			Possible errors: org.bluez.Error.InvalidArguments
     41 					 org.bluez.Error.DoesNotExist
     42