org.bluez.obex.Client(5)

πŸŽ€ Name πŸŽ€

org.bluez.obex.Client β€” the BlueZ D-Bus OBEX Client API documentation. literally the whole vibe. πŸ’…

hiii bestie, this is org.bluez.obex.Client(5) from the Linux System Administration manual, and we're about to make the D-Bus OBEX client API make sense. no cap. ✨

πŸ¦‹ Interface πŸ¦‹

okay so here's the setup, bestie:

  • Service: org.bluez.obex
  • Interface: org.bluez.obex.Client1
  • Object path: /org/bluez/obex

πŸ’… Methods πŸ’…

✨ object CreateSession(string destination, dict args) ✨

This one connects to the destination address and then proceeds to create an OBEX session object that implements the org.bluez.obex.Session(5) interface. iconic behavior, honestly. πŸ’–

The last parameter is a dictionary (dict args) to hold optional or type-specific parameters. the way that's important. 🫢

Possible args values:

  • string Target β€” the type of session to be created. πŸ‘‘

Possible values:

  • "ftp"
  • "map"
  • "opp"
  • "pbap"
  • "sync"
  • "bip-avrcp"
  • string Source β€” the local address to be used. 🌸
  • byte Channel β€” the channel to be used. πŸŽ€
  • uint16 PSM β€” the L2CAP PSM to be used. πŸ¦‹

Possible errors:

  • org.bluez.obex.Error.InvalidArguments
  • org.bluez.obex.Error.Failed

πŸ’€ void RemoveSession(object session) πŸ’€

This disconnects and removes a session previously created by CreateSession(), aborting any pending transfers. so if it's over, it's over β€” periodt. 😭

Possible errors:

  • org.bluez.obex.Error.InvalidArguments
  • org.bluez.obex.Error.NotAuthorized

xoxo, this page is from BlueZ, dated October 2023, and it's org.bluez.obex.Client(5). stay iconic, bestie πŸ’œβœ¨

πŸ“¦ where this page comes from