Append to BTScan results, don't replace

sammachin-gprs
Thomas Lake 2018-09-02 15:11:03 +01:00
parent b12b077b16
commit aee5d6b2b6
1 changed files with 1 additions and 1 deletions

View File

@ -558,7 +558,7 @@ def btscan(timeout=30000):
response = command("AT+BTSCAN=1," + str(int(timeout/1000)), timeout+8000, "+BTSCAN: 1")
for entry in extractvals("+BTSCAN: 0,", response):
splitentry = entry.split(",")
result = [int(splitentry[0]), splitentry[1].strip("\""), splitentry[2], int(splitentry[3])]
result.append([int(splitentry[0]), splitentry[1].strip("\""), splitentry[2], int(splitentry[3])])
return result
# Get the requesting paring device name