Auto-detect all ESP32 companions on serial ports.
()
| 8336 | """Get current configuration""" |
| 8337 | try: |
| 8338 | return jsonify(shared_data.config) |
| 8339 | except Exception as e: |
| 8340 | logger.error(f"Error getting config: {e}") |
| 8341 | return jsonify({'error': str(e)}), 500 |
| 8342 | |
| 8343 | |
| 8344 | @app.route('/api/config', methods=['POST']) |
| 8345 | def update_config(): |
| 8346 | """Update configuration""" |
| 8347 | try: |
| 8348 | data = request.get_json() |
| 8349 | if not data: |
nothing calls this directly
no test coverage detected