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

Unsigned long HASensorNumber compile error on ESP32 #258

Open
proasnet opened this issue Jul 1, 2024 · 0 comments
Open

Unsigned long HASensorNumber compile error on ESP32 #258

proasnet opened this issue Jul 1, 2024 · 0 comments

Comments

@proasnet
Copy link

proasnet commented Jul 1, 2024

If I use in a code
ha_sensor_alarm.setValue( exchange_data.alarm );

I get error on compile
call of overloaded 'setValue(long unsigned int&)' is ambiguous
else

ha_sensor_alarm.setValue( (unsigned int)exchange_data.alarm );

working, but data shorted.

I tried example "sensor-integer", where is unsigned long used for time, and compile error too

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

1 participant