-
Open the Arduino IDE:
- Open the
.ino
file located in theesp32
directory using the Arduino IDE.
- Open the
-
Configure Secrets:
- Navigate to the
secrets.h
file. - Fill in the required information (such as WiFi credentials, Hardware Pins, etc.) as specified by your project.
- Navigate to the
-
Obtain Server IP Address:
- Refer to the Server Setup section to get the IP address of your server.
- Update the IP address in your
secrets.h
to match the server IP.
-
Flash the ESP32:
- Follow the hardware documentation to upload the code to your ESP32.
-
Add Wiring Picture:
(Insert image here) -
Wiring Configuration:
- Wiring configurations may vary depending on the ESP32 model you're using.
- Refer to your specific hardware's datasheet for pin configurations.
-
Prerequisites:
- Ensure you have Node.js and npm (Node Package Manager) installed on your machine.
-
Install Server Dependencies:
- Navigate to the
server
directory in your terminal or command prompt. - Run the following command to install the necessary dependencies:
npm install
- Navigate to the
-
Start the Server:
- To run the server, execute the following command:
node index.mjs
- To run the server, execute the following command:
To obtain the server's IP address (required for configuration in secrets.h
):
- Open the Command Prompt by searching for "cmd" in the start menu or pressing
Win + R
and typingcmd
. - Run the following command:
ipconfig
- Locate your specific network adapter (e.g., Wi-Fi or Ethernet).
- Use the IPv4 address associated with that network adapter. This will be the server's IP address.
- Ensure your ESP32 and server are connected to the same network.
- If you encounter issues with the server or ESP32 connectivity, verify firewall settings and network configurations.