()
| 11120 | def wardriving_serial(): |
| 11121 | """Get or set serial ESP32 listener configuration. Supports multiple companions.""" |
| 11122 | try: |
| 11123 | engine = _get_wardriving_engine() |
| 11124 | |
| 11125 | if request.method == 'GET': |
| 11126 | companions = [c.as_dict() for c in engine._companions.values()] |
| 11127 | return jsonify({ |
| 11128 | 'connected': engine.serial_connected, |
| 11129 | 'port': engine._serial_port or '', |
no outgoing calls
no test coverage detected