You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Compile Error:
/workspaces/pio-workspace/main/ZgatewayRF.ino: In function 'void RFtoMQTT()':
/workspaces/pio-workspace/main/ZgatewayRF.ino:134:18: error: 'to_string' is not a member of 'std'
rawDump += std::to_string(raw[i]);
To Reproduce
git checkout v1.7.0
enable + '-DZgatewayRF="RF"' in environments.ini
pio run -e rfbridge-direct
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
n/a
Environment (please complete the following information):
OpenMQTTGateway version used (V0.9.3, 0.8, development)
Library version related to the problem you have (if you have troubles with RF provide the version of RCSwitch library)
For IR and RF clarify if you tested with the basic examples given with these libraries
Additional context
Add any other context about the problem here.
Processing rfbridge-direct (platform: espressif8266@^2; board: esp8285; framework: arduino)
PlatformIO Core, version 6.1.14
xtensa-lx106-elf-g++ (GCC) 4.8.2
If I remove -DZgatewayRF="RF"' project compiles.
I tried to reproduce the error in a very small project, this compiles in esp32 bur not in esp8266
-std is set to gnu++11 in both calls
You should not have a compilation error if you use the versions of the libraries linked into the libraries folder, this badges show you the state of the compilation
If you are not sure this is a bug or an enhancement post your question to the forum below
I checked out a fresh copy, and also development behaves the way. I replaced the rawdump block in main/ZgatewayRF.ino with the one from #a6c0a3b1, which is not relying on std:to_string and build is ok even with on toolchain.
Before submitting a problem please check the troubleshooting section
https://docs.openmqttgateway.com/upload/troubleshoot.html
Describe the bug
Compile Error:
/workspaces/pio-workspace/main/ZgatewayRF.ino: In function 'void RFtoMQTT()':
/workspaces/pio-workspace/main/ZgatewayRF.ino:134:18: error: 'to_string' is not a member of 'std'
rawDump += std::to_string(raw[i]);
To Reproduce
git checkout v1.7.0
enable + '-DZgatewayRF="RF"' in environments.ini
pio run -e rfbridge-direct
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
n/a
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
Processing rfbridge-direct (platform: espressif8266@^2; board: esp8285; framework: arduino)
PlatformIO Core, version 6.1.14
xtensa-lx106-elf-g++ (GCC) 4.8.2
If I remove
-DZgatewayRF="RF"'
project compiles.I tried to reproduce the error in a very small project, this compiles in esp32 bur not in esp8266
-std is set to gnu++11 in both calls
pio run -e esp01 fails: 'to_string' is not a member of 'std'
pio run -e esp32 works
The text was updated successfully, but these errors were encountered: