hallo Pfiffikus
habe wiringPi erfolgreich installiert.
mein problem ist die einrichtung mi rcswitch
++ -c -o RCSwitch.o RCSwitch.cpp
RCSwitch.cpp: In member function ‘char* RCSwitch::getCodeWordB(int, int, boolean)’:
RCSwitch.cpp:194:61: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
char* code[5] = { "FFFF", "0FFF", "F0FF", "FF0F", "FFF0" };
^
RCSwitch.cpp:194:61: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
RCSwitch.cpp:194:61: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
RCSwitch.cpp:194:61: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
RCSwitch.cpp:194:61: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
RCSwitch.cpp:196:12: error: invalid conversion from ‘char’ to ‘char*’ [-fpermissive]
return '\0';
^~~~
RCSwitch.cpp: In member function ‘char* RCSwitch::getCodeWordA(char*, int, boolean)’:
RCSwitch.cpp:229:74: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
char* code[6] = { "FFFFF", "0FFFF", "F0FFF", "FF0FF", "FFF0F", "FFFF0" };
^
RCSwitch.cpp:229:74: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
RCSwitch.cpp:229:74: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
RCSwitch.cpp:229:74: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
RCSwitch.cpp:229:74: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
RCSwitch.cpp:229:74: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
RCSwitch.cpp:232:14: error: invalid conversion from ‘char’ to ‘char*’ [-fpermissive]
return '\0';
^~~~
RCSwitch.cpp:241:14: error: invalid conversion from ‘char’ to ‘char*’ [-fpermissive]
return '\0';
^~~~
RCSwitch.cpp: In member function ‘char* RCSwitch::getCodeWordC(char, int, int, boolean)’:
RCSwitch.cpp:269:12: error: invalid conversion from ‘char’ to ‘char*’ [-fpermissive]
return '\0';
^~~~
RCSwitch.cpp: In static member function ‘static bool RCSwitch::receiveProtocol1(unsigned int)’:
RCSwitch.cpp:523:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
RCSwitch.cpp: In static member function ‘static bool RCSwitch::receiveProtocol2(unsigned int)’:
RCSwitch.cpp:558:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make: *** [<eingebaut>: RCSwitch.o]Fehler 1
habe dann den hier genommen
git clone
git://github.com/xkonni/raspberry-remote.gitmake ausgeführt
und ./send ……… ein und ausgeschaltet hat funktioniert kann ich diesesbenutzen mit der teichsteuerung oder müßte was geändert werden
sudo git clone
https://github.com/WiringPi/WiringPi habe ich genommen ohne fehler
Mit freundlichen Grüßen
Heiko