update
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user