v1.0.3
Release v1.0.3
This release focuses on stability and usability improvements for the PC Host Mode introduced in v1.0.2. It resolves SSL handshake issues on the Python bridge, improves error recovery, and adds a complete suite of PC-compatible examples.
🛠 Python Bridge Improvements (serial_bridge.py)
- Robust Error Handling: The bridge script now gracefully catches and ignores decoder errors caused by Arduino bootloader noise/garbage bytes, preventing crashes on startup.
- Relaxed SSL Verification: Disabled strict SSL certificate verification for WebSocket connections (using
ssl.CERT_NONE) to match the permissive behavior of the ESP32 Host. This fixes connectivity to public test servers likeecho.websocket.org. - Extended Timeouts: Increased the default TCP connection timeout from 2s to 10s to accommodate slower public brokers (e.g., MQTT).
📂 New PC Host Examples
A new set of examples specifically optimized for the PC USB Host architecture (using Serial and proper bootloader flushing) has been added:
- HTTP Client:
HTTP_GETandHTTP_POST(demonstrating the required 3rd parameter for SSL). - WebSocket:
Websocket_Client(tested withecho.websocket.org). - MQTT:
MQTT_Client(Secure) connecting to HiveMQ on port 8883. - UDP:
UDP_NTP_Client. - Streaming:
HTTP_Streaming(SSE) with a local Python test server.
✨ Miscellaneous
- Added Local SSE Server: A
sse_server.pyutility (withrun.bat/.shscripts) is now included inexamples/Features/PC_USB_Host/HTTP_Streaming/Serverto facilitate local HTTP streaming tests. - Updated sketches to include
Serial.write(0x00)insetup()to clear PC-side buffers on boot.