Websocket Viewer
Materials
Supported EVB x 1
SD card x 1
Example
This example demonstrates how the AMB82 Mini acts as a WebSocket server to stream live camera video to a web browser.
It provides a low-latency video streaming suitable for real-time applications.
In the highlighted code snippet, fill in the ssid with your WiFi network SSID and pass with the network password.
By default, the WebSocket Viewer file is loaded from htdocs.h.
Alternatively, the file can be loaded from a SD card. To load it from the SD card,
Set this value to 1 to load the WebSocket Viewer file.
Format the SD card as FAT32 using Windows OS.
Copy htdocs.bin to the root directory of the SD card.
Insert the SD card into the board.
Compile the code and upload it to Ameba. After pressing the Reset button, wait for the Ameba Pro 2 board to connect to the WiFi network. The board’s IP address will be shown in the Serial Monitor.
Open Google Chrome or any web browser of your choice and enter http://{your_ip_address}/ to connect to the AmebaPro2 mini.
Code Reference
You may adjust the video bitrate based on your WiFi network quality.