Skip to content

Commit

Permalink
taruh di loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Bagas Udi Sahsangka committed Sep 8, 2021
1 parent 4a1f597 commit 272bf47
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions uhf-test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python3

import socket
import time

host = '192.168.1.190'
port = 6000
Expand Down Expand Up @@ -43,5 +44,7 @@ def send_cmd(cmd):
print(hex_space)
s.close()

send_cmd(INVENTORY1)
send_cmd(INVENTORY2)
while True:
send_cmd(INVENTORY1)
send_cmd(INVENTORY2)
time.sleep(1)

0 comments on commit 272bf47

Please sign in to comment.