Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion GivTCP/findInvertor.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def worker(self, thread:Thread) -> None:

def findInvertor(subnet):
network = ipaddress.IPv4Network(subnet, strict=False)
PORT = 8899
PORT = 7654
start = perf_counter()
# I didn't need a timeout of 1 so I used 0.1
socket.setdefaulttimeout(1)
Expand Down
4 changes: 2 additions & 2 deletions findinvdev.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
async def getInvDeets2(HOST):
try:
Stats={}
client=Client(HOST,8899,3)
client=Client(HOST,7654,3)
await client.connect()
await client.detect_plant(additional=False)

Expand Down Expand Up @@ -66,4 +66,4 @@ async def getInvDeets2(HOST):
if len(invList)==0:
logger.info("No inverters found...")
else:
logger.info("inverters found...")
logger.info("inverters found...")