Closed Percherie closed 7 months ago
@Percherie Hi Could you download this client https://github.com/AlexandrErohin/TP-Link-Archer-C6U, run the code and post the output here
from tplinkrouterc6u import TPLinkMRClient
from logging import Logger
client = TPLinkMRClient('192.168.0.1', 'yourPassword', logger=Logger('test'))
client.authorize()
acts = [
client.ActItem(client.ActItem.GS, 'LAN_IP_INTF', attrs=['X_TP_MACAddress', 'IPInterfaceIPAddress']),
client.ActItem(client.ActItem.GS, 'WAN_IP_CONN',
attrs=['enable', 'MACAddress', 'externalIPAddress', 'defaultGateway']),
client.ActItem(client.ActItem.GL, 'LAN_WLAN', attrs=['enable', 'X_TP_Band']),
client.ActItem(client.ActItem.GL, 'LAN_WLAN_GUESTNET', attrs=['enable', 'name']),
client.ActItem(client.ActItem.GL, 'LAN_HOST_ENTRY', attrs=[
'IPAddress',
'MACAddress',
'hostName',
'X_TP_ConnType',
'active',
]),
client.ActItem(client.ActItem.GS, 'LAN_WLAN_ASSOC_DEV', attrs=[
'associatedDeviceMACAddress',
'X_TP_TotalPacketsSent',
'X_TP_TotalPacketsReceived',
]),
]
result, values = client.req_act(acts)
print(result)
Thank it's first time to run Python ;-p The output is
>>> print(result)
[1,1,0,0,0,0]0
X_TP_MACAddress=30:DE:4B:17:D0:68
IPInterfaceIPAddress=192.168.1.1
[2,1,1,0,0,0]1
enable=0
MACAddress=
externalIPAddress=0.0.0.0
defaultGateway=0.0.0.0
[1,1,0,0,0,0]2
enable=0
X_TP_Band=2.4GHz
[1,1,0,0,0,0]3
enable=0
name=wlan1
[error]0
@Percherie I have fixed it. Please try v1.13.2 and let me know how it works
Nice it's work Entities CPU used and Memory used don't work, it's unavailable, mayby with MR6400 it's impossible ??
Good job 👍👍
@Percherie Your router doesnt provide CPU used and Memory used info :(
P.S. Would be great if you could give a star for this repo :) Thanks
Describe the bug Configuration is echec There seems to be a problem with the MAC address but I don't know how to improve the situation.
Logs
Additional Information (please complete the following information)