Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where to find libraries? #17

Open
pavloshargan opened this issue Dec 21, 2023 · 1 comment
Open

Where to find libraries? #17

pavloshargan opened this issue Dec 21, 2023 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@pavloshargan
Copy link

pavloshargan commented Dec 21, 2023

The project is very cool, looks like exactly what I was looking for.
My goal is to connect the board to the mobile phone through the OTG and control IT by sending the commands to BLE characteristics from custom app on the phone ( To bypass the Android/IOS limitation in remote control, so I have something like TeamViewer, but for mobile phone).

I don't have much experience writing the firmware in Arduino IDE, so the one thing is not clear to me: Where to get the libraries and how to install them? I have XIAO ESP32 S3 from seed studio, and usually I just zip a folder with cpp/h files + library.properties and load that zip to the ArduinoIDE. How do you install the libraries?
Many thanks for response

@mhamidjamil
Copy link
Owner

mhamidjamil commented Dec 21, 2023

@pavloshargan
First you need this code the one i have in uploaded_code folder.
To install libraries please follow these steps:

  1. BLE Libraries:

    • BLEDevice.h
    • BLEServer.h
    • BLEUtils.h

    To install these, open the Arduino IDE, go to Sketch -> Include Library -> Manage Libraries. In the Library Manager, search for "BLE" and install the libraries provided by Neil Kolban.

  2. WebServer Library:

    • WebServer.h

    You can install this library by going to Sketch -> Include Library -> Manage Libraries, and then search for "WebServer" by Markus Sattler.

  3. WiFi Library:

    • WiFi.h

    This library is likely already included with your Arduino IDE. If not, you can install it by going to Sketch -> Include Library -> Manage Libraries, and then search for "WiFi" by Arduino.

  4. Cspiffs Library:

    • This library might not be available in the Arduino Library Manager. You may need to download it manually from a source like GitHub and include it in your Arduino project.
  5. USB Libraries:

    • USB.h
    • USBHIDKeyboard.h

    These are specific to the ESP32 platform. Make sure you have the ESP32 board manager installed. Go to File -> Preferences, and in the "Additional Boards Manager URLs" field, add this URL: https://dl.espressif.com/dl/package_esp32_index.json. Then, go to Tools -> Board -> Boards Manager, search for "esp32" and install the ESP32 platform.

  6. ESP-NOW Library:

    • esp_now.h

    This library is specific to ESP32. You should already have it if you are working with ESP32. If not, make sure you have the ESP32 board manager installed (as mentioned in step 5).

Make sure you have selected correct board selected under Tools -> Board and has the ESP32 board manager installed.

If you face any issue while installation, or in any feature requirements or any kind of issue please let me know I'll help you.

@mhamidjamil mhamidjamil added the documentation Improvements or additions to documentation label Dec 21, 2023
@mhamidjamil mhamidjamil self-assigned this Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Status: No status
Development

No branches or pull requests

2 participants