import xmlrpclib
#
# Define the Host and port
HOST='192.168.1.54'
PORT='27000'
# Create the XML-RPC object instance
server = xmlrpclib.ServerProxy('http://' + HOST + ':' + PORT + '/RPC2')
#
# Obtain the result of the list method
list=server.list()
#
# Loop through the results and list relevant fields
for x in list:
# NOTE: Everything from here to the end is indented to part of the "for" list
# Get the 64-bit address and clean it up
ExtendedAddress=x['addr_extended']
ExtendedAddress=ExtendedAddress.replace('[','')
ExtendedAddress=ExtendedAddress.replace(']','')
ExtendedAddress=ExtendedAddress.replace('!','')
# Get the Node ID
NodeID=x['label']
# Get the TCP Port
TCPPort=x['port_number']
print '64-bit Address: ' + ExtendedAddress + ', NodeID: ' + NodeID + ', TCP Port: ' + str(TCPPort)
-----------
Here's the output from a program run from the command prompt:
-----------
D:\FILES\z. System\Power Monitor\Digi ConnectPort X2>xmlrpc
64-bit Address: 00:13:a2:00:40:0a:3e:ff, NodeID: E2, TCP Port: 27001
D:\FILES\z. System\Power Monitor\Digi ConnectPort X2>
load->model('lat_lon');
		$posdata['rows'] = $this->lat_lon->getAll();
        $this->load->view('coords' , $posdata);
	}
}
model
db->get('latlon');
		if($q->num_rows() > 0) {
			foreach ($q->result() as $row) {
			    $lldata[] = $row;
			}
		return $lldata ;
		}
	}
}
view
  
    My view has been loaded
        " . $r->name . "";
        echo "Lattitude: " . $r->lat . "";
        echo "Longitude: " . $r->lon . "";
        echo "ID: " . $r->id . "" ;
          }
         ?>