Open prai44 opened 7 months ago
C:\Users\Suprin\Documents\OBD2_K-line_Reader-main\ESP32\WEB_SERVER.ino: In function 'void initWiFi()': WEB_SERVER:17:20: error: could not convert 'WiFi.WiFiClass::config(IPAddress(STA_ip), IPAddress(STA_gateway), IPAddress(STA_subnet))' from 'void' to 'bool' if (WiFi.config(STA_ip, STA_gateway, STA_subnet));
~~~^~~~~~~~~ WEB_SERVER:19:8: error: 'class WiFiClass' has no member named 'mode' WiFi.mode(WIFI_STA); ^~ WEB_SERVER:19:13: error: 'WIFI_STA' was not declared in this scope WiFi.mode(WIFI_STA); ^~WEB_SERVER:20:8: error: 'class WiFiClass' has no member named 'setTxPower' WiFi.setTxPower(WIFI_POWER_2dBm); ^~~~ WEB_SERVER:20:19: error: 'WIFI_POWER_2dBm' was not declared in this scope WiFi.setTxPower(WIFI_POWER_2dBm); ^~~~~ WEB_SERVER:21:28: error: invalid conversion from 'const char' to 'char' [-fpermissive] WiFi.begin(STA_ssid.c_str(), STA_password.c_str());~~~~^~ In file included from C:\Users\Suprin\Documents\OBD2_K-line_Reader-main\ESP32\ESP32.ino:1: C:\Program Files (x86)\Arduino\libraries\WiFi\src/WiFi.h:79:21: note: initializing argument 1 of 'int WiFiClass::begin(char, const char)' int begin(char ssid, const char passphrase); ~~^~ WEB_SERVER:30:10: error: 'class WiFiClass' has no member named 'mode' WiFi.mode(WIFI_AP); ^~ WEB_SERVER:30:15: error: 'WIFI_AP' was not declared in this scope WiFi.mode(WIFI_AP); ^~~ WEB_SERVER:31:10: error: 'class WiFiClass' has no member named 'softAP' WiFi.softAP(AP_ssid, AP_password); ^~~~ exit status 1 could not convert 'WiFi.WiFiClass::config(IPAddress(STA_ip), IPAddress(STA_gateway), IPAddress(STA_subnet))' from 'void' to 'bool'
Which board are you using ?
esp wroom 32
esp wroom 32
Check the version of the board from board manager and if there is a new version update.
esp wroom 32
Check the version of the board from board manager and if there is a new version update.
2.0.15 board manger esp32 dev module
- Which version of Arduino IDE are you using?
- Are you sure you have selected ESP32 as the board type? If yes, which ESP32 did you choose in the IDE?
ide 1.8.19 esp32 dev module board manger 2.0.15
I test with the same stuff and it works for me. I do not know. If I find a solution, I will write to you. You can test by reinstalling the Arduino IDE and the esp32 board.
If you have another library for wifi in this directory 'C:\Users\USERNAME\Documents\Arduino\libraries' , folder like "Wifi" rename it like "Wifi1" or something else and test.
I tested in a virtual machine from scratch
Here is all Librarys I installed Libraries.zip
2. https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
WEB_SERVER:156:9: error: 'void ws()' redeclared as different kind of symbol
void ws() {
^
E:\OBD2_K-line_Reader-main\ESP32\ESP32.ino:9:16: note: previous declaration 'AsyncWebSocket ws'
AsyncWebSocket ws("/ws");
^~
E:\OBD2_K-line_Reader-main\ESP32\ESP32.ino: In function 'void setup()':
ESP32:42:3: error: 'initWebSocket' was not declared in this scope
initWebSocket();
^~~~~
E:\OBD2_K-line_Reader-main\ESP32\ESP32.ino:42:3: note: suggested alternative: 'initWebServer'
initWebSocket();
^~~~~
initWebServer
E:\OBD2_K-line_Reader-main\ESP32\ESP32.ino: In function 'void loop()':
ESP32:65:5: error: 'wsSend' was not declared in this scope
wsSend();
^~
E:\OBD2_K-line_Reader-main\ESP32\ESP32.ino:65:5: note: suggested alternative: 'wscanf'
wsSend();
^~
wscanf
E:\OBD2_K-line_Reader-main\ESP32\K_Line.ino: In function 'void read_K()':
K_Line:40:3: error: 'wsSend' was not declared in this scope
wsSend();
^~
E:\OBD2_K-line_Reader-main\ESP32\K_Line.ino:40:3: note: suggested alternative: 'wscanf'
wsSend();
^~
wscanf
E:\OBD2_K-line_Reader-main\ESP32\WEB_SERVER.ino: At global scope:
WEB_SERVER:156:9: error: 'void ws()' redeclared as different kind of symbol
void ws() {
^
E:\OBD2_K-line_Reader-main\ESP32\ESP32.ino:9:16: note: previous declaration 'AsyncWebSocket ws'
AsyncWebSocket ws("/ws");
^~
E:\OBD2_K-line_Reader-main\ESP32\WEB_SERVER.ino: In function 'void ws()':
WEB_SERVER:157:3: error: 'webSocket' was not declared in this scope
webSocket.loop();
^~~~~
E:\OBD2_K-line_Reader-main\ESP32\WEB_SERVER.ino:157:3: note: suggested alternative: 'eBlocked'
webSocket.loop();
^~~~~
eBlocked
exit status 1
'void ws()' redeclared as different kind of symbol
You need to download my Last updates this is your problem. Download my Last commits. Open ESP32.ino file. After that you need to see 4 pages like this:
If you see these pages, then there is no problem. Press the compile button without changing the code.
code compile but not so starting ip rst:0x8 (TG1WDT_SYS_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0030,len:1344 load:0x40078000,len:13964 load:0x40080400,len:3600 entry 0x400805f0 ets Jul 29 2019 12:21:46
if you uploaded the code successfully, you need to connect to the access point, with your phone or something else, called OBD2 Master. Then open the browser and enter the IP. Default IP for access point is 192.168.4.1
Does it work ?
peramiter set but connect phone hotspot
const char AP_ssid = "OBD2 Master"; const char AP_password = "12345678";
IPAddress AP_ip(192, 168, 53, 60); IPAddress AP_subnet(255, 255, 255, 0); IPAddress AP_gateway(192, 168, 53, 52);
conection not stables i have try ssd id rename
not connect String STA_ssid = "prince"; String STA_password = "11111111"; String IP_address = ""; String SubnetMask = ""; String Gateway = ""; String protocol = "";
any desk access in my laptop
Do not change settings.conf file. Do not change this Strings: String STA_ssid = ""; String STA_password = ""; String IP_address = ""; String SubnetMask = ""; String Gateway = ""; String protocol = "";
ESP32 first creates an access point and his name is "OBD2 Master". You need to connect to this WiFi. If you want to connect to your WiFi connection, you can do it from the web server in settings menu.
If you explain better what you want, I can help you better.
I am not able to make the network stable, I have tried all the things which you have told, can you understand me by remote accessing my laptop or can you tell me the step to step network configuration of the code?
Have you uploaded the website to SPIFFS? If you have uploaded, follow these steps:
Don't change my code and upload it to your ESP32
ESP32 Creates a WiFi (access point) which you can see on the wifi page of your device.
You need to connect to this WiFi (access point) called "OBD2 Master". Тhe password is "12345678"
Then you need to open "192.168.4.1" in your browser
You should see this page:
Just ,If you want to connect your ESP32 to your home WiFi, you can do so in the settings page.
not show wifi ssid
You dont need Serial Monitor.
The code has been run but ssd name is obb2 master ssd is not showing in my phone.
The code does not print the SSID of the serial monitor. This is how you should see in your wifis.
not show i have allready tried
Delete this line and test WiFi.setTxPower(WIFI_POWER_2dBm);
allready check it
Have you uploaded data folder to SPIFFS??
yes
Give me AnyDesk access
Hi,
I would like to invite you to an AnyDesk session. My ID is 1 088 227 428.
Get AnyDesk at:
ANY SOLUTION
Not Working Tried this code many times but couldn't find solution please resolve solution
Hello. I think I found your problem. I tried with ESP32 Devkit and application gave the same error. The problem is that you shouldn't use pin 8. In the code, pin 8 is used to control an LED. Change it to some other number and try. Before, it didn't give me an error because I was using an ESP32 C3 model. ESP32 c3 and ESP32 Wroom pins are different. I think the led on devkit v1 was on pin 2. You can change 8 to 2.
Working fine Can data saving features be added to it?
I'm glad it works 😊. I may add this feature in the future.
Pin not connected obd Kline adapter
What does this mean. Do you have any problem?
Not connecting to car please send pin to diagram ka line
![Uploading IMG_20240510_192831376_AE.jpg…]() ![Uploading IMG_20240510_192826448_AE.jpg…]()
Did you do the communication scheme I shared?
Yes
Which scheme did you make?
And why you are using pin 32 and pin 33 ? You need to use UART Pins.
C:\Users\Suprin\Documents\OBD2_K-line_Reader-main\ESP32\WEB_SERVER.ino: In function 'void initWiFi()': WEB_SERVER:17:20: error: could not convert 'WiFi.WiFiClass::config(IPAddress(STA_ip), IPAddress(STA_gateway), IPAddress(STA_subnet))' from 'void' to 'bool' if (WiFi.config(STA_ip, STA_gateway, STA_subnet));