⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 network-api.txt

📁 实现bluez蓝牙profile需要的库
💻 TXT
字号:
Bluetooth network service API description*****************************************Copyright (C) 2006-2007  Marcel Holtmann <marcel@holtmann.org>Network Manager hierarchy=========================Interface	org.bluez.network.ManagerObject path	/org/bluez/networkMethods		array{string} ListServers()			Returns an array of available network devices paths.			Currently only NAP and GN are supported.		string FindServer(string pattern)			Returns server path.			Possible errors: org.bluez.network.Error.DoesNotExist			                 org.bluez.network.Error.Failed		string CreateConnection(string address, string uuid)			Creates a network connection object(NAP or GN).			Possible errors: org.bluez.network.Error.AlreadyExists			                 org.bluez.network.Error.NotSupported			                 org.bluez.network.Error.ConnectionAttemptFailed			                 org.bluez.network.Error.Failed		void RemoveConnection(string path)			Removes a network connection object for a given path.			Possible errors: org.bluez.network.Error.DoesNotExist			                 org.bluez.network.Error.Failed		array{string} ListConnections()			Returns an array of available network connections paths.		string FindConnection(string pattern)			Returns connection path.			Possible errors: org.bluez.network.Error.DoesNotExist			                 org.bluez.network.Error.Failed		string LastConnection()			Returns last connected connection path, if none is connected			fallback to last created connection.			Possible errors: org.bluez.network.Error.DoesNotExist		string DefaultConnection()			Returns default connection path.			Possible errors: org.bluez.network.Error.DoesNotExist		string ChangeDefaultConnection(string pattern)			Changes default connection path.			Possible errors: org.bluez.network.Error.DoesNotExistSignals		void ConnectionCreated(string path)		void ConnectionRemoved(string path)		void DefaultConnectionChanged(string path)Network Server hierarchy (experimental)=======================================Interface	org.bluez.network.ServerObject path	/org/bluez/network/{gn, nap, panu}Methods		string GetUUID()			Returns the UUID-128 string representation of			the server.		void Enable()			Enable server and updates service record.			Possible errors: org.bluez.network.Error.AlreadyExists			                 org.bluez.network.Error.Failed		void Disable()			Disable server and remove service record.			Possible errors: org.bluez.network.Error.Failed		void SetName(string name)			Sets the name attribute.		string GetName()			Returns the service name.		void SetAddressRange(string start, string end)			TBD		void SetRouting(string interface)			TBD		void SetSecurity(bool enable)			TBD		bool GetSecurity()			Returns server encryption.		dict GetInfo()			Returns the server properties.Signals		void Enabled()		void Disabled()Network Connection hierarchy (experimental)===========================================Interface	org.bluez.network.ConnectionObject path	/org/bluez/network/connection*Methods		string GetAdapter()			Returns the Bluetooth address of the adapter.		string GetAddress()			Returns the Bluetooth address of the ending point.		string GetUUID()			Returns the uuid 128 string representation of			the connected service.		string GetName()			Returns the string representation of connected host.			Possible errors: org.bluez.network.Error.Failed		string GetDescription()			Returns the string description of connected host.			Possible errors: org.bluez.network.Error.Failed		string GetInterface()			Returns the string network interface.			Possible errors: org.bluez.network.Error.Failed		string Connect()			Connects to host and return the network interface			created.			Possible errors: org.bluez.network.Error.ConnectionAttemptFailed			                 org.bluez.network.Error.Failed		void CancelConnect()			Abort connection attempt in case of errors or			timeouts in the client.			Possible errors: org.bluez.network.Error.Failed		void Disconnect()			Disconnects to host.			Possible errors: org.bluez.network.Error.Failed		bool IsConnected()			Returns the connection status.		dict GetInfo()			Returns the connection properties.Signals		void Connected()		void Disconnected()

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -