Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with ESP8266 Compiling on Arduino IoT Cloud #17

Open
onostec opened this issue Aug 28, 2024 · 2 comments
Open

Error with ESP8266 Compiling on Arduino IoT Cloud #17

onostec opened this issue Aug 28, 2024 · 2 comments

Comments

@onostec
Copy link

onostec commented Aug 28, 2024

Could you please check out this error I got while compiling on Arduino Iot Cloud

/usr/local/bin/arduino-cli compile --fqbn esp8266:esp8266:generic --build-cache-path /tmp --output-dir /tmp/2572720623/build --build-path /tmp/arduino-build-A8648914555524E4D21267121210C4A7  /tmp/2572720623/Untitled_aug28b

/home/builder/Arduino/libraries/modbusrtumaster_1_0_5/src/ModbusRTUMaster.cpp: In member function 'void ModbusRTUMaster::begin(long unsigned int, uint32_t)':
/home/builder/Arduino/libraries/modbusrtumaster_1_0_5/src/ModbusRTUMaster.cpp:67:40: error: invalid conversion from 'uint32_t {aka unsigned int}' to 'SerialConfig' [-fpermissive]
     _hardwareSerial->begin(baud, config);
                                        ^
In file included from /home/builder/.arduino15/packages/esp8266/hardware/esp8266/2.5.0/cores/esp8266/Arduino.h:263:0,
                 from /home/builder/Arduino/libraries/modbusrtumaster_1_0_5/src/ModbusRTUMaster.h:7,
                 from /home/builder/Arduino/libraries/modbusrtumaster_1_0_5/src/ModbusRTUMaster.cpp:1:
/home/builder/.arduino15/packages/esp8266/hardware/esp8266/2.5.0/cores/esp8266/HardwareSerial.h:78:10: error:   initializing argument 2 of 'void HardwareSerial::begin(long unsigned int, SerialConfig)' [-fpermissive]
     void begin(unsigned long baud, SerialConfig config)
          ^

Error during build: exit status 1
@CMB27
Copy link
Owner

CMB27 commented Aug 29, 2024

Huh, In whatever core you are using, it looks like they changed the serial configuration (like SERIAL_8N1) to be of type SerialConfig rather than an integer type.

What core/board are you using?

@onostec
Copy link
Author

onostec commented Aug 29, 2024

In the Arduino IoT cloud, I only selected the generic ESP8266 and attempted compiling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants