#NEWLINE# def do_iam( self , args ) : #NEWLINE# #INDENT# 'iam' #NEWLINE# args = args . split ( ) #NEWLINE# if _debug : #NEWLINE# #INDENT# WhoIsIAmConsoleCmd . _debug ( 'do_iam %r' , request ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# request = IAmRequest ( ) #NEWLINE# request . pduDestination = GlobalBroadcast ( ) #NEWLINE# request . iAmDeviceIdentifier = this_device . objectIdentifier #NEWLINE# request . maxAPDULengthAccepted = this_device . maxApduLengthAccepted #NEWLINE# request . segmentationSupported = this_device . segmentationSupported #NEWLINE# request . vendorID = this_device . vendorIdentifier #NEWLINE# if _debug : #NEWLINE# #INDENT# WhoIsIAmConsoleCmd . _debug ( '    - request: %r' , request ) #NEWLINE# #UNINDENT# this_application . request ( request ) #NEWLINE# #UNINDENT# except Exception as err : #NEWLINE# #INDENT# WhoIsIAmConsoleCmd . _exception ( 'exception: %r' , err )