Skip to content

v1.0.3

Choose a tag to compare

@mobizt mobizt released this 24 Nov 19:40
· 9 commits to main since this release

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 like echo.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_GET and HTTP_POST (demonstrating the required 3rd parameter for SSL).
  • WebSocket: Websocket_Client (tested with echo.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.py utility (with run.bat/.sh scripts) is now included in examples/Features/PC_USB_Host/HTTP_Streaming/Server to facilitate local HTTP streaming tests.
  • Updated sketches to include Serial.write(0x00) in setup() to clear PC-side buffers on boot.