update client to SN mode

This commit is contained in:
Villivateur Von 2022-03-27 11:52:36 +08:00
parent eea55f928d
commit e31750a340
1 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ import psutil
############################################## ##############################################
####### User Defined Area 用户自定义区 ######## ####### User Defined Area 用户自定义区 ########
uuid = "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa" sn = "V0000T0000"
mount_point0 = '/' mount_point0 = '/'
mount_point1 = '/' mount_point1 = '/'
@ -12,7 +12,7 @@ mount_point1 = '/'
############################################## ##############################################
url = "http://iot.vvzero.com/topuino/putdata" url = "https://iot.vvzero.com/topuino/putdata"
while True: while True:
try: try:
@ -30,7 +30,7 @@ while True:
net_recv_after = psutil.net_io_counters().bytes_recv net_recv_after = psutil.net_io_counters().bytes_recv
data = { data = {
'UUID': uuid, 'SN': sn,
'CPU_PERCENT': cpu_percent, 'CPU_PERCENT': cpu_percent,
'MEM_PERCENT': mem_percent, 'MEM_PERCENT': mem_percent,
'DISK_PERCENT': disk_percent, 'DISK_PERCENT': disk_percent,