MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / stop_wifi_ap

Function stop_wifi_ap

webapp_modern.py:12251–12267  ·  view source on GitHub ↗

Stop Wi-Fi Access Point mode

()

Source from the content-addressed store, hash-verified

12249 result = session.import_wigle_csv(stream)
12250
12251 if not engine.session:
12252 session.close()
12253
12254 return jsonify(result)
12255 except Exception as e:
12256 logger.error(f"Wardriving import error: {e}")
12257 return jsonify({'error': str(e)}), 500
12258
12259@app.route('/api/wardriving/serial/detect', methods=['GET'])
12260def wardriving_serial_detect():
12261 """Auto-detect all ESP32 companions on serial ports."""
12262 try:
12263 engine = _get_wardriving_engine()
12264 ports = engine._detect_all_esp32_serial()
12265 return jsonify({'found': bool(ports), 'ports': ports, 'port': ports[0] if ports else ''})
12266 except Exception as e:
12267 logger.error(f"Wardriving serial detect error: {e}")
12268 return jsonify({'found': False, 'ports': [], 'port': '', 'error': str(e)})
12269
12270@app.route('/api/wardriving/serial', methods=['GET', 'POST'])

Callers

nothing calls this directly

Calls 2

stop_ap_modeMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected