Open iMiMx opened 1 year ago
I don't understand the Q, You want to disable automatic updates and it is not working?
My apologies. Whilst I might be wrong, it looks like retrieving values is supported, but not changing? Is that correct?
def configuration(self) -> GetResponseType:
return self._session.get('online-update/configuration')
def autoupdate_config(self) -> GetResponseType:
return self._session.get('online-update/autoupdate-config')
https://github.com/Salamek/huawei-lte-api/blob/master/huawei_lte_api/api/OnlineUpdate.py
Currently i'm not aware of any way to change this settings using this lib... but i'll have a look if i can find some way...
As far as I can see, disabling automatic online updates - and forced updates, 'do not require user to login for updates' - is not possible?
Under the OTA / System sections in the UI, I have the following:
OTA - http://192.168.8.1/api/online-update/autoupdate-config
System - http://192.168.8.1/api/online-update/configuration
Testing on an E8372h-820 and E8372h-320, device info:
{'DeviceName': 'E8372h-820', 'SerialNumber': 'xxxx', 'Imei': 'xxxx', 'Imsi': 'xxx', 'Iccid': 'xxx', 'Msisdn': None, 'HardwareVersion': 'CL4E8372HM', 'SoftwareVersion': '10.0.5.1(H195SP2C983)', 'WebUIVersion': 'WEBUI 10.0.5.1(W13SP5C7401)', 'MacAddress1': 'xx:xx:xx:xx:xx:xx', 'MacAddress2': None, 'WanIPAddress': '10.216.28.166', 'wan_dns_address': '10.206.128.1,10.206.128.1', 'WanIPv6Address': None, 'wan_ipv6_dns_address': None, 'ProductFamily': 'LTE', 'Classify': 'wingle', 'supportmode': 'LTE|WCDMA|GSM', 'workmode': 'LTE', 'submask': '255.255.255.255', 'Mccmnc': '23415', 'iniversion': 'E8372h-820-CUST 10.0.5.1(C1431)', 'uptime': '4857', 'ImeiSvn': '01', 'WifiMacAddrWl0': '94:E9:EE:68:8E:A9', 'WifiMacAddrWl1': None, 'spreadname_en': 'HUAWEI Mobile WiFi 2 mini', 'spreadname_zh': 'HUAWEI Mobile WiFi 2 mini'}
Reading is possible it seems, but not setting/post-ing: