I am porting a Python application from a ConnectPort to a TransPort WR44. The program uses the digicli library to get the device’s MAC address, but this library is not included with the WR44. What is the XML for an RCI request to get the MAC address of a WR44?
digicli won’t work on the transport. You need to use sarcli library to pass the ati5 command. Then parse the response to get the MAC address.
Something along these lines works for me…
import sarcli cli = sarcli.open() cli.write('ati5') infoString = cli.read() macStrPos = infoString.find('MAC:') macStr = infoString[macStrPos+3:macStrPos+12+4].replace(':','')