Trees | Indices | Help |
---|
|
object --+ | threading._Verbose --+ | threading.Thread --+ | BTServer
Class that represents a Bluetooth server.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from |
|
|||
|
|||
|
|
|||
isVerbose = False
|
|||
CONNECTED = "CONNECTED"
|
|||
LISTENING = "LISTENING"
|
|||
TERMINATED = "TERMINATED"
|
|||
MESSAGE = "MESSAGE"
|
|
|||
Inherited from Inherited from Inherited from |
|
Creates a Bluetooth server that listens for a connecting client. The server runs in its own thread, so the constructor returns immediately. State changes invoke the callback onStateChanged(state, msg) where state is one of the following strings: "LISTENING", "CONNECTED", "MESSAGE", "TERMINATED". msg is a string with further information: LISTENING: empty, CONNECTED: connection url, MESSAGE: message received, TERMINATED: empty. The server uses an internal handler thread to detect incoming messages.
|
Method representing the thread's activity. You may override this method in a subclass. The standard run() method invokes the callable object passed to the object's constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.
|
Sends the information msg to the client (as String, the character (ASCII 0) serves as end of string indicator, it is transparently added and removed)
|
Returns True, if a client is connected to the server.
|
Returns True, if the server is in TERMINATED state.
|
Returns the library version.
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Sun Apr 16 12:46:33 2017 | http://epydoc.sourceforge.net |