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 compiling #5

Open
Dutchy-79 opened this issue Jan 26, 2021 · 1 comment
Open

Error compiling #5

Dutchy-79 opened this issue Jan 26, 2021 · 1 comment

Comments

@Dutchy-79
Copy link

src/main.cpp: In lambda function:
src/main.cpp:314:33: error: expected type-specifier before 'CustomP1UartComponent'
auto dsmr_p1_sensor = new CustomP1UartComponent(uart_bus);
^
src/main.cpp:316:767: error: could not convert '{, , , , , , , , , , , , , , , , , , , , }' from '' to 'std::vectoresphome::sensor::Sensor*'
return {dsmr_p1_sensor->s_energy_delivered_tariff1, dsmr_p1_sensor->s_energy_delivered_tariff2, dsmr_p1_sensor->s_energy_returned_tariff1, dsmr_p1_sensor->s_energy_returned_tariff2, dsmr_p1_sensor->s_power_delivered, dsmr_p1_sensor->s_power_returned, dsmr_p1_sensor->s_voltage_l1, dsmr_p1_sensor->s_voltage_l2, dsmr_p1_sensor->s_voltage_l3, dsmr_p1_sensor->s_current_l1, dsmr_p1_sensor->s_current_l2, dsmr_p1_sensor->s_current_l3, dsmr_p1_sensor->s_power_delivered_l1, dsmr_p1_sensor->s_power_delivered_l2, dsmr_p1_sensor->s_power_delivered_l3, dsmr_p1_sensor->s_power_returned_l1, dsmr_p1_sensor->s_power_returned_l2, dsmr_p1_sensor->s_power_returned_l3, dsmr_p1_sensor->s_gas_device_type, dsmr_p1_sensor->s_gas_valve_position, dsmr_p1_sensor->s_gas_delivered};
^
src/main.cpp:317:3: warning: control reaches end of non-void function [-Wreturn-type]
});
^
*** [/data/p1_water/.pioenvs/p1_water/src/main.cpp.o] Error 1
========================== [FAILED] Took 3.40 seconds ==========================

@zuidwijk
Copy link

Did you copy/use it one-on-one?

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