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

Function start_wifi_ap

webapp_modern.py:12232–12248  ·  view source on GitHub ↗

Start Wi-Fi Access Point mode

()

Source from the content-addressed store, hash-verified

12230
12231 file = request.files['file']
12232 if not file.filename:
12233 return jsonify({'error': 'Empty filename'}), 400
12234
12235 # Validate file extension
12236 if not file.filename.lower().endswith('.csv'):
12237 return jsonify({'error': 'Only CSV files accepted'}), 400
12238
12239 import io
12240 from wardriving import WardrivingSession
12241
12242 # Use current session or create a new one for import
12243 if engine.session:
12244 session = engine.session
12245 else:
12246 session = WardrivingSession(engine.data_dir)
12247
12248 stream = io.StringIO(file.read().decode('utf-8', errors='replace'))
12249 result = session.import_wigle_csv(stream)
12250
12251 if not engine.session:

Callers

nothing calls this directly

Calls 2

start_ap_modeMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected