This commit is contained in:
Your Name
2025-02-25 15:15:29 +01:00
parent 92ec2a0bb9
commit 20a0786380
3 changed files with 22 additions and 3 deletions

View File

@@ -119,7 +119,7 @@ try:
print('<h3>Start reboot python script</h3>')
# 1. Set AIRCARTO URL
print('Set aircarto URL')
print('➡️Set aircarto URL')
aircarto_profile_id = 0
aircarto_url="data.nebuleair.fr"
command = f'AT+UHTTP={aircarto_profile_id},1,"{aircarto_url}"\r'
@@ -129,7 +129,7 @@ try:
time.sleep(1)
#2. Set uSpot URL
print('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'

View File

@@ -1,11 +1,18 @@
'''
____ _ ____ _
/ ___| / \ | _ \ / \
\___ \ / _ \ | |_) | / _ \
___) / ___ \| _ < / ___ \
|____/_/ \_\_| \_\/_/ \_\
Script to connect SARA-R410 to network SARA-R410
python3 /var/www/nebuleair_pro_4g/SARA/sara_connectNetwork.py ttyAMA2 20801 10
AT+COPS=1,2,20801
mode->1 pour manual
format->2 pour numeric
operator->20801 pour orange
operator->20801 pour orange, 20810 pour SFR
'''
import serial