Trouble compiling for ESP32

140 views
Skip to first unread message

bourne...@tiscali.co.uk

unread,
Feb 17, 2021, 4:17:18 PM2/17/21
to TasmotaUsers
Compiling tasmota-sensors works fine, but tasmota32-sensors causes strange errors that suggest I have issues with my Platformio setup.
C:/Users/**/Documents/Platformio/Projects/Tasmota-Solar/tasmota/support_rtc.ino:25:16: error: expected ')' before '(' token
 const uint32_t SECS_PER_MIN = 60UL;
                ^
C:/Users/**/Documents/Platformio/Projects/Tasmota-Solar/tasmota/support_rtc.ino:26:16: error: expected ')' before '(' token
 const uint32_t SECS_PER_HOUR = 3600UL;
                ^
C:/Users/**/Documents/Platformio/Projects/Tasmota-Solar/tasmota/support_rtc.ino:27:16: error: expected ')' before '(' token
 const uint32_t SECS_PER_DAY = SECS_PER_HOUR * 24UL;
Obviously there are no brackets in the lines mentioned and the same file passes when compiled for 8266
Code from dev version of 9.2.0 downloaded earlier this week

Philip Knowles

unread,
Feb 17, 2021, 4:23:09 PM2/17/21
to bourne...@tiscali.co.uk, TasmotaUsers

Do you need to compile (there is a pre-compiled tasmota32-sensors.bin)? Having said that I compiled 9.1 for BLE use and that compiled fine with platformio. I just did

Uncomment in platformio_tasmota32.ini tasmota32 in line #9

 

Regards

 

Phil K

Sent from Mail for Windows 10

--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/9734b8bc-157a-4a10-9488-247cef58dcden%40googlegroups.com.

 

bourne...@tiscali.co.uk

unread,
Feb 17, 2021, 5:22:22 PM2/17/21
to TasmotaUsers


Hi Phil, I need to compile because next step is to add a moveable temperature setpoint.
All I do is uncomment as you have, but support_rtc is having this error only on my windows 10 machine, not my Windows 7 machine ( brought out of retirement to cope with 340G USB chip)
so I suspect its something to do with my Platformio setup, not that Tasmota should care as it uses its own libs 

 

bourne...@tiscali.co.uk

unread,
Feb 18, 2021, 4:44:54 PM2/18/21
to TasmotaUsers

Turns out I had to delete Time lib by Michael Margolis for ESp32 to compile correctly
Reply all
Reply to author
Forward
0 new messages