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

Not Working with RBDIMMER #321

Closed
jamsyogendra opened this issue Jun 30, 2022 · 2 comments
Closed

Not Working with RBDIMMER #321

jamsyogendra opened this issue Jun 30, 2022 · 2 comments
Assignees
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@jamsyogendra
Copy link

Hello everyone I am trying to add Rbdimmer in my project but i got an error can someone told me why this happens,

error while compile:

Arduino: 1.8.19 (Windows 10), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"

WARNING: library ArduinoIoTCloud claims to run on mbed, samd, esp8266, mbed_nano, mbed_portenta, mbed_nicla architecture(s) and may be incompatible with your current board which runs on esp32 architecture(s).

In file included from C:\Users\jamsa\OneDrive\Desktop\Untitled_aug02a\Untitled_aug02a.ino:4:0:

C:\Users\jamsa\OneDrive\Documents\Arduino\libraries\RBDDimmer-master\src/RBDdimmer.h:32:11: error: 'OFF' redeclared as different kind of symbol

     OFF = false,

           ^

In file included from C:\Users\jamsa\OneDrive\Documents\Arduino\libraries\ArduinoIoTCloud\src/ArduinoIoTCloud.h:33:0,

                 from C:\Users\jamsa\OneDrive\Desktop\Untitled_aug02a\thingProperties.h:3,

                 from C:\Users\jamsa\OneDrive\Desktop\Untitled_aug02a\Untitled_aug02a.ino:2:

C:\Users\jamsa\OneDrive\Documents\Arduino\libraries\ArduinoIoTCloud\src/AIoTC_Const.h:26:19: note: previous declaration 'const bool OFF'

 static bool const OFF = false;

                   ^

In file included from C:\Users\jamsa\OneDrive\Desktop\Untitled_aug02a\Untitled_aug02a.ino:4:0:

C:\Users\jamsa\OneDrive\Documents\Arduino\libraries\RBDDimmer-master\src/RBDdimmer.h:33:10: error: 'ON' redeclared as different kind of symbol

     ON = true

          ^

In file included from C:\Users\jamsa\OneDrive\Documents\Arduino\libraries\ArduinoIoTCloud\src/ArduinoIoTCloud.h:33:0,

                 from C:\Users\jamsa\OneDrive\Desktop\Untitled_aug02a\thingProperties.h:3,

                 from C:\Users\jamsa\OneDrive\Desktop\Untitled_aug02a\Untitled_aug02a.ino:2:

C:\Users\jamsa\OneDrive\Documents\Arduino\libraries\ArduinoIoTCloud\src/AIoTC_Const.h:25:19: note: previous declaration 'const bool ON'

 static bool const ON  = true;

                   ^

C:\Users\jamsa\OneDrive\Desktop\Untitled_aug02a\Untitled_aug02a.ino: In function 'void setup()':

Untitled_aug02a:74:31: error: no matching function for call to 'dimmerLamp::begin(DIMMER_MODE_typedef, const bool&)'

   dimmer.begin(NORMAL_MODE, ON);

                               ^

In file included from C:\Users\jamsa\OneDrive\Desktop\Untitled_aug02a\Untitled_aug02a.ino:4:0:

C:\Users\jamsa\OneDrive\Documents\Arduino\libraries\RBDDimmer-master\src/RBDdimmer.h:63:14: note: candidate: void dimmerLamp::begin(DIMMER_MODE_typedef, ON_OFF_typedef)

         void begin(DIMMER_MODE_typedef DIMMER_MODE, ON_OFF_typedef ON_OFF);

              ^

C:\Users\jamsa\OneDrive\Documents\Arduino\libraries\RBDDimmer-master\src/RBDdimmer.h:63:14: note:   no known conversion for argument 2 from 'const bool' to 'ON_OFF_typedef'

Multiple libraries were found for "WiFi.h"

 Used: C:\Users\jamsa\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFi

 Not used: C:\Users\jamsa\OneDrive\Documents\Arduino\libraries\WiFiNINA

 Not used: C:\Program Files (x86)\Arduino\libraries\WiFi

exit status 1

no matching function for call to 'dimmerLamp::begin(DIMMER_MODE_typedef, const bool&)'



This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Any idea what is happing here

@jamsyogendra
Copy link
Author

jamsyogendra commented Jun 30, 2022

Currently I am using this
https://github.com/RobotDynOfficial/RBDDimmer

@per1234
Copy link
Contributor

per1234 commented Jul 1, 2022

Duplicate of #280

@per1234 per1234 marked this as a duplicate of #280 Jul 1, 2022
@per1234 per1234 closed this as completed Jul 1, 2022
@per1234 per1234 added type: imperfection Perceived defect in any part of project conclusion: duplicate Has already been submitted topic: code Related to content of the project itself labels Jul 1, 2022
@per1234 per1234 self-assigned this Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants