transmission of test frame works

This commit is contained in:
uhi22 2022-10-14 23:44:34 +02:00
parent 07f33d3bc8
commit b97966e61d

View file

@ -124,7 +124,7 @@ class pyPlcHomeplug():
self.mytransmitbuffer[59]=0x0 # self.mytransmitbuffer[59]=0x0 #
def sendTestFrame(self): def sendTestFrame(self):
addToTrace("transmitting test frame...") self.addToTrace("transmitting test frame...")
self.composeTestFrame() self.composeTestFrame()
self.sniffer.sendpacket(bytes(self.mytransmitbuffer)) self.sniffer.sendpacket(bytes(self.mytransmitbuffer))
@ -163,7 +163,7 @@ class pyPlcHomeplug():
self.sniffer.setnonblock(True) self.sniffer.setnonblock(True)
print("sniffer created at " + self.strInterfaceName) print("sniffer created at " + self.strInterfaceName)
def addToTrace(s): def addToTrace(self, s):
self.callbackAddToTrace(s) self.callbackAddToTrace(s)
def showStatus(self, s): def showStatus(self, s):