I set the access point in this way:
the control of access point in this :Code:def set_accesspoint(): apid = socket.select_access_point() if appuifw.query(u"Settare il punto di accesso predefinito","query") == True: f = open('e:\\apid.txt','w') f.write(repr(apid)) f.close() appuifw.note(u"Punto d'accesso salvato ", "info") apo = socket.access_point(apid) socket.set_default_access_point(apo)
and it's work good,but i don't know the way to close the 3g connectionCode:try: f=open('e:\\apid.txt','rb') setting = f.read() apid = eval(setting) f.close() if not apid == None : apo = socket.access_point(apid) socket.set_default_access_point(apo) else: set_accesspoint() except: set_accesspoint()![]()


Reply With Quote


