Skip to content
This repository has been archived by the owner on Oct 15, 2021. It is now read-only.

String constructor #10

Open
tintinz opened this issue May 2, 2014 · 0 comments
Open

String constructor #10

tintinz opened this issue May 2, 2014 · 0 comments

Comments

@tintinz
Copy link

tintinz commented May 2, 2014

Hello. Thanks for awsome lib!
i have a problem right now. i using message=String("data")+String(123321), and
.send(message);
code:
for(int i=0;i<4;i++){
message = String("BB_")+String(i)+String("_")+String(Sensor[i]);

mySwitch.sendTriState(message);

}

get this error:
no mathching function for call to 'RCSwitch::sendTriSate(String&)'

MORE:
Arduino: 1.5.6-r2 (Windows 8), Board: "Arduino Pro or Pro Mini, ATmega328 (5V, 16 MHz)"

Send_RClib_4_sensors.ino: In function 'void loop()':
Send_RClib_4_sensors:83: error: no matching function for call to 'RCSwitch::sendTriState(String&)'
C:\Program Files (x86)\Arduino\libraries\RCSwitch/RCSwitch.h:72: note: candidates are: void RCSwitch::sendTriState(char*)

Please some advice or solution on this.
Thanks

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

No branches or pull requests

1 participant