mirror of https://github.com/hak5/ToorChat.git
Updates
parent
82724f2bc7
commit
81f54b75ee
|
@ -10,6 +10,7 @@ class ToorChatProtocol():
|
|||
''' This is used to send a simple message over the toorchat protocol '''
|
||||
msg = ToorChatMessage(message, user)
|
||||
self.device.RFxmit(msg.to_string())
|
||||
print msg.to_string()
|
||||
|
||||
@classmethod
|
||||
def get_packet_start(cls):
|
||||
|
|
|
@ -16,8 +16,8 @@ def main():
|
|||
protocol = ToorChatProtocol(badge)
|
||||
while True:
|
||||
try:
|
||||
msg, timestamp = badge.RFrecv()
|
||||
print msg
|
||||
print badge.RFrecv()
|
||||
# print msg
|
||||
except ChipconUsbTimeoutException:
|
||||
pass
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ def main():
|
|||
try:
|
||||
# msg, timestamp = badge.RFrecv()
|
||||
# print "enter a message"
|
||||
send = raw_input("Enter a message")
|
||||
send = raw_input("Enter a message\n")
|
||||
protocol.send_message(send)
|
||||
except ChipconUsbTimeoutException:
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue