Comments (23)
A little bit strange as in sonoff.ino there is:
#define getChipId() getEfuseMac()
as I didn't find get chip id for ESP32.
If it works in sonoff.ino (where is used couple of times, should also work in webserver.ino).
I am using Arduino 1.8.5.
Libraries added.
Updated to v5.12.0c. There are so often changes in main Tasmota, so keeping very up-to-date is hard. Contribution welcome.
from sonoff-tasmota.
Great update, It's not important to update your fork on every small release, only on major releases.
Another small suggestion, add a link to your ESP32 fork in Tasmota's wiki - a new page on the left side.
In this way more people will notice about your fork. The more the community the more contributors.
from sonoff-tasmota.
Added on main page on right side topic list.
from sonoff-tasmota.
Firstly, I have such an error:
second, All the time I see that everything compiles on ESP8266, does something else have to be set to compile in the ESP32 environment? (my board is ESP32 devkit v1 from doit)
from sonoff-tasmota.
Did you change board to ESP32 dev module?
from sonoff-tasmota.
An what version of IDE do you have? I am using 1.8.5.
from sonoff-tasmota.
@JacekDob
Thanks for help
I thought that from default is ESP32 :)
You mean I have to change board = esp01_1m to eg. my board board = esp32doit-devkit-v1 ??
eg.
[env:sonoff]
platform = espressif8266
framework = arduino
board = esp32doit-devkit-v1
board_flash_mode = dout
build_flags = -Wl,-Tesp8266.flash.1m0.ld
lib_deps = PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON
extra_scripts = pio/strip-floats.py
I am using arduino 1.8.5
I'm a bit confused because I can not find any ESP32 settings in the project, only ifdef ESP32
Mayby small how to - my board ESP32 devkit v1 from doit ? :)
from sonoff-tasmota.
Install ESP32 for Arduino:
https://github.com/espressif/arduino-esp32/blob/master/docs/arduino-ide/windows.md
In Arduino IDE set Tool->Board->ESP32 Dev Module
Add in user_config_override.h:
#undef USE_ADC_VCC // Needs to be ported
#undef USE_IR_REMOTE // IRremoteESP8266 needs to be ported
#undef SNFBRIDGE // No commercial device, no sense porting
Copy all libraries in \lib to Arduino\libraries
Add support of unsigned long long in WString as in Readme.
from sonoff-tasmota.
platformio.ini is not for Arduino IDE and is not used at all
from sonoff-tasmota.
I have updates change is user_config_override.h so please refresh.
I have also added installation instructions in project Readme.
from sonoff-tasmota.
Thanks, it works a little ;)
I thought it was prepared for the Platformo environment, hence the misunderstanding.
its compiles under Arduino IDE.
For now I have noticed that it do not want to work on the static address eg. 192.168.0.39
, with DHCP working. (WIFI_IP_ADDRESS) I put it off today and I will make sure tomorrow.
Thanks for help and for the port on ESP32 (I use a lot of ESP8266, this is the first attempt on ESP32)
:)
from sonoff-tasmota.
Porting to work with Platformo to be done.
Static should work in terms of implementation, support.ino:
if (Settings.ip_address[0]) {
WiFi.config(Settings.ip_address[0], Settings.ip_address[1], Settings.ip_address[2], Settings.ip_address[3]); // Set static IP
}
from sonoff-tasmota.
if WIFI_IP_ADDRESS = "0.0.0.0" works,
if WIFI_IP_ADDRESS = "192.168.0.39" not (see below)
I checked, this address is not occupied and work if compiled on ESP8266
It looks like there is a problem logging into the wifi if a static address is set
Can you check if your ESP behaves differently?
rst:0x10 (RTCWDT_RTC_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:0x3fff0018,len:4
load:0x3fff001c,len:956
load:0x40078000,len:0
load:0x40078000,len:13076
entry 0x40078a58
00:00:00 APP: Set Baudrate to 115200
00:00:00 Project sonoff Test (Topic sonoff, Fallback Test, GroupTopic sonoffs) Version 5.12.0c-STAGED
00:00:00 WIF: Connecting to AP1 T100 in mode 11
00:00:15 WIF: Connect failed with AP timeout
00:00:15 WIF: Connecting to AP1 T100 in mode 11
00:00:18 WIF: Connect failed as AP cannot be reached
00:00:19 WIF: Connect failed as AP cannot be reached
00:00:20 WIF: Connect failed as AP cannot be reached
00:00:21 WIF: Connect failed as AP cannot be reached
00:00:22 WIF: Connect failed as AP cannot be reached
00:00:23 WIF: Connect failed as AP cannot be reached
here is if adres is set to DHCP
0:00:00 Project sonoff Test (Topic sonoff, Fallback Test, GroupTopic sonoffs) Version 5.12.0c-STAGED
00:00:00 WIF: Connecting to AP1 T100 in mode 11
00:00:01 WIF: Connected
00:00:01 DNS: Initialized
00:00:01 HTP: Web server active on Test.local with IP address 192.168.0.225
00:00:01 MQT: Attempting connection...
00:00:01 MQT: Connected
00:00:01 MQT: main/sonoff/39/tele/LWT = Online (retained)
00:00:01 MQT: main/sonoff/39/cmnd/POWER =
00:00:01 MQT: main/sonoff/39/tele/INFO1 = {"Module":"WEMOS","Version":"5.12.0c","FallbackTopic":"Test","GroupTopic":"sonoffs"}
00:00:01 MQT: main/sonoff/39/tele/INFO2 = {"WebServerMode":"Admin","Hostname":"Test","IPAddress":"192.168.0.225"}
00:00:01 MQT: main/sonoff/39/tele/INFO3 = {"RestartReason":"1"}
12:09:36 MQT: main/sonoff/39/tele/STATE = {"Time":"2018-02-26T12:09:36","Uptime":"0T00:00:18","Wifi":{"AP":1,"SSId":"T100","RSSI":100,"APMac":"00:1E:8C:CE:F7:93"}}
from sonoff-tasmota.
Are you setting also WIFI_GATEWAY, WIFI_SUBNETMASK, WIFI_DNS with proper values?
from sonoff-tasmota.
I'm having trouble compiling, these are just some of the errors I get.
C:\Users\Tom\Documents\Arduino\hardware\espressif\esp32\cores\esp32/WString.h:58:5: note: candidate: String::String(const String&)
String(const String &str);
^
C:\Users\Tom\AppData\Local\Temp\arduino_modified_sketch_32088\xplg_wemohue.ino: In function 'void HueLights(String*)':
C:\Users\Tom\AppData\Local\Temp\arduino_modified_sketch_32088\xplg_wemohue.ino:698:18: warning: switch condition has type bool [-Wswitch-bool]
switch(on)
^
Multiple libraries were found for "WiFi.h"
Used: C:\Users\Tom\Documents\Arduino\hardware\espressif\esp32\libraries\WiFi
Not used: C:\Users\Tom\Downloads\arduino-1.8.4\libraries\WiFi
exit status 1
call of overloaded 'String(uint64_t)' is ambiguous
Could you please please consider uploading the .bin files required for using this ?
from sonoff-tasmota.
@JacekDob
Yes, WIFI_GATEWAY, WIFI_SUBNETMASK, WIFI_DNS are set corectly
eg. in user_config_override.h
#ifdef WIFI_GATEWAY
#undef WIFI_GATEWAY
#endif
#define WIFI_GATEWAY "192.168.0.1" // {IpAddress2] If not using DHCP set Gateway IP address
#ifdef WIFI_SUBNETMASK
#undef WIFI_SUBNETMASK
#endif
#define WIFI_SUBNETMASK "255.255.255.0" // [IpAddress3] If not using DHCP set Network mask
#ifdef WIFI_DNS
#undef WIFI_DNS
#endif
#define WIFI_DNS "8.8.8.8"
Static address work ok. on Your's ESP ?
from sonoff-tasmota.
Then it needs analysis.
And check if it works standalone.
from sonoff-tasmota.
The same effect,
if IP 0.0.0.0 works, if 192.168.0.38 is not.
Does this example work for you?
from sonoff-tasmota.
I haven’t tried it. I’m using dhcp with static lease on router. I will try to test it. Look on arduino esp32 github if it was reported.
from sonoff-tasmota.
Even if you use DHCP, you can use a static address, just make sure it is not in the DHCP pool. I would like to confirm only if it is not my hardware fault. You can check it ?
from sonoff-tasmota.
Static IP
This:
https://github.com/espressif/esp-idf/pull/657/files#diff-6a4183dba634c596fdfa03b23c74a8d2L746
fix this error, now is ok
from sonoff-tasmota.
Should issue be closed?
from sonoff-tasmota.
Yes, so far all is working ;)
from sonoff-tasmota.
Related Issues (20)
- Crash after boot on Wemos Lolin32 HOT 1
- Wifi Connection issue HOT 1
- PlatformIO config example HOT 3
- Watch dog protection
- missing statusFWR
- Question: BLE as device tracker? HOT 1
- Tasmota esp32 shows error as **'const char HTTP_HEAD []' redeclared as different kind of symbol** HOT 1
- any precompiled binaries? HOT 2
- M5Stack with ili9341? HOT 1
- Compilation error: fatal error: esp_timer.h: No such file or directory
- successful build in platform.io
- ESP32 WIFI CONFIGURATION PROBLEM HOT 1
- Secure Boot / Flash Encryption Support
- ESP32 CODE DUMPED BUT PROBLEM WITH OUTPUT
- Hi i tries esp32 tasmota in arduino but in platformio i got many warnings
- not really an issue due to it's in beta
- call of overloaded 'String(uint64_t)' is ambiguous HOT 1
- Recompile to ESP8266 HOT 2
- [FR] Soldering / wiring guide to upgrade sonoff HOT 3
- ESP8266 user_config_overide.h HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sonoff-tasmota.