MCPcopy
hub / github.com/dronesploit/dronesploit / run

Method run

dronesploit/_src/modules/command/dji/tello.py:32–43  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

30 })
31
32 def run(self):
33 #FIXME: this was copied from command/hobbico/cme ; to be adapted wrt Tello's methods
34 essid = self.config.option("TARGET").value
35 new_essid = self.config.option("NEW_SSID").value
36 t = self.console.state['TARGETS']
37 pswd = t[essid]['password']
38 if self._change_ap_creds(new_essid, pswd):
39 t[new_essid] = {k: new_essid if k == "essid" else v for k, v in t[essid].items()}
40 self.config['NEW_SSID'] = essid
41 del t[essid]
42 self.console.root.interfaces
43 self.config['TARGET'] = new_essid if self.connect(new_essid) is not None else None
44
45
46class EmergencyStop(TelloModule):

Callers

nothing calls this directly

Calls 2

connectMethod · 0.80
_change_ap_credsMethod · 0.45

Tested by

no test coverage detected