Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Are there any drivers that need to be installed?
#3
> do you use KC868-M16 board?

Yes, just arrived but I can't get it to work

> it just use ADC of arduino IDE

Not sure what that means. I just need it to push the sensor data to MQTT.

> here are some deom source code:

I can get that to work. I just can't connect to the M16 in any way.

I don't know which board to select here.

https://imgur.com/smST06D

Ok, this did it:

Install the ESP32 board in your Arduino IDE:

If you haven't already installed the ESP32 board in your Arduino IDE, the ETH.h file will not be available. The ESP32 is not included by default, so you will need to manually install it:

Open your Arduino IDE
Click on "File"
Then "Preferences"
Then add https://dl.espressif.com/dl/package_esp32_index.json to the "Additional Boards Manager URLs" field (if you have multiple URLs, separate them by commas).
Click on "OK"
Now, click on "Tools"
Then "Board"
Then "Boards Manager"
In the search bar, type "ESP32" and then install the board by Espressif Systems.
After this, you should be able to use the ETH.h file in your sketches.

Check Your Sketchbook Location:

The libraries you install are saved in your sketchbook location. If the sketchbook location is not properly set, the Arduino IDE may not be able to find your libraries. To check this:

Open the Arduino IDE.
Click on "File".
Then "Preferences".
The "Sketchbook location" is displayed in the Preferences window. Make sure this is set to the directory where your libraries are installed.
Check Your #include Statement:

Ensure you've typed the #include statement correctly. It should look exactly like this: #include <ETH.h>. If there's any mistake in the case or spelling, the IDE will not be able to find the file.

Check if the Library is Correctly Installed:

The ETH.h file is part of the Ethernet library for the ESP32 board. Ensure the library is correctly installed. You can re-install it to make sure.

Go to "Sketch" -> "Include Library" -> "Manage Libraries".
In the Library Manager, search for the ESP32 Ethernet library and install it.
Reply


Messages In This Thread
RE: Are there any drivers that need to be installed? - by MonsterJoe - 05-19-2023, 04:35 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)