|
@@ -101,6 +101,7 @@ class GatewaySubDeviceView(View):
|
|
|
# 查询是否已添加过该子设备
|
|
|
sub_device_qs = GatewaySubDevice.objects.filter(device_id=device_id, ieee_addr=ieee_addr)
|
|
|
if sub_device_qs.exists():
|
|
|
+ sub_device_qs.update(src_addr=src_addr) # 更新短地址
|
|
|
return response.json(174)
|
|
|
|
|
|
with transaction.atomic():
|