Package nxt :: Module usbsock :: Class USBSock

Class USBSock

source code

object --+
         |
        USBSock

Object for USB connection to NXT

Instance Methods
 
__init__(self, device)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__str__(self)
str(x)
source code
 
connect(self)
Use to connect to NXT.
source code
 
close(self)
Use to close the connection.
source code
 
send(self, data)
Use to send raw data over USB connection ***ADVANCED USERS ONLY***
source code
 
recv(self)
Use to recieve raw data over USB connection ***ADVANCED USERS ONLY***
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Variables
  bsize = 60
Properties

Inherited from object: __class__

Method Details

__init__(self, device)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)