This commit is contained in:
Your Name
2025-02-25 13:02:34 +01:00
parent 4f7a704779
commit b3f5ee9795
2 changed files with 147 additions and 9 deletions

View File

@@ -129,6 +129,7 @@ try:
time.sleep(1)
#2. Set uSpot URL
print('Set uSpot URL')
uSpot_profile_id = 1
uSpot_url="api-prod.uspot.probesys.net"
command = f'AT+UHTTP={uSpot_profile_id},1,"{uSpot_url}"\r'
@@ -137,6 +138,13 @@ try:
print(response_SARA_2)
time.sleep(1)
print("set port 81")
command = f'AT+UHTTP={uSpot_profile_id},5,81\r'
ser_sara.write((command + '\r').encode('utf-8'))
response_SARA_55 = read_complete_response(ser_sara, wait_for_lines=["OK"])
print(response_SARA_55)
time.sleep(1)
#3. Get localisation (CellLocate)
mode = 2
sensor = 2