hi al.
i have a sketch that's giving me problems.
I'm using a cheap 344mhz module with the RadioHead library. this all works fine when using the web editor.
however, wyen compiling the sketchwith the arduino ide on my rpi i get this errors while compiling.
/home/pi/sketchbook/libraries/RadioHead/RH_E32.cpp: In member function 'bool RH_E32::writeParameters(RH_E32::Parameters&, bool)':
/home/pi/sketchbook/libraries/RadioHead/RH_E32.cpp:78:59: error: invalid conversion from 'char*' to 'const uint8_t* {aka const unsigned char*}' [-fpermissive]
size_t result = _s->write((char*)¶ms, sizeof(params));
^
In file included from /usr/share/arduino/hardware/arduino/cores/arduino/Stream.h:26:0,
from /usr/share/arduino/hardware/arduino/cores/arduino/HardwareSerial.h:28,
from /usr/share/arduino/hardware/arduino/cores/arduino/Arduino.h:193,
from /home/pi/sketchbook/libraries/RadioHead/RadioHead.h:1162,
from /home/pi/sketchbook/libraries/RadioHead/RHGenericDriver.h:9,
from /home/pi/sketchbook/libraries/RadioHead/RH_E32.h:14,
from /home/pi/sketchbook/libraries/RadioHead/RH_E32.cpp:6:
/usr/share/arduino/hardware/arduino/cores/arduino/Print.h:53:20: note: initializing argument 1 of 'virtual size_t Print::write(const uint8_t*, size_t)'
virtual size_t write(const uint8_t *buffer, size_t size);
^
/home/pi/sketchbook/libraries/RadioHead/RH_E32.cpp: In member function 'bool RH_E32::getVersion()':
/home/pi/sketchbook/libraries/RadioHead/RH_E32.cpp:130:57: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'char*' [-fpermissive]
size_t result = _s->readBytes(version, sizeof(version)); // default 1 sec timeout
^
In file included from /usr/share/arduino/hardware/arduino/cores/arduino/HardwareSerial.h:28:0,
from /usr/share/arduino/hardware/arduino/cores/arduino/Arduino.h:193,
from /home/pi/sketchbook/libraries/RadioHead/RadioHead.h:1162,
from /home/pi/sketchbook/libraries/RadioHead/RHGenericDriver.h:9,
from /home/pi/sketchbook/libraries/RadioHead/RH_E32.h:14,
from /home/pi/sketchbook/libraries/RadioHead/RH_E32.cpp:6:
/usr/share/arduino/hardware/arduino/cores/arduino/Stream.h:76:10: note: initializing argument 1 of 'size_t Stream::readBytes(char*, size_t)'
size_t readBytes( char *buffer, size_t length); // read chars from stream into buffer
^
/home/pi/sketchbook/libraries/RadioHead/RH_E32.cpp: In member function 'virtual bool RH_E32::available()':
/home/pi/sketchbook/libraries/RadioHead/RH_E32.cpp:208:31: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'char*' [-fpermissive]
while (_s->readBytes(&data, 1) == 1) // Not read timeout
^
In file included from /usr/share/arduino/hardware/arduino/cores/arduino/HardwareSerial.h:28:0,
from /usr/share/arduino/hardware/arduino/cores/arduino/Arduino.h:193,
from /home/pi/sketchbook/libraries/RadioHead/RadioHead.h:1162,
from /home/pi/sketchbook/libraries/RadioHead/RHGenericDriver.h:9,
from /home/pi/sketchbook/libraries/RadioHead/RH_E32.h:14,
from /home/pi/sketchbook/libraries/RadioHead/RH_E32.cpp:6:
/usr/share/arduino/hardware/arduino/cores/arduino/Stream.h:76:10: note: initializing argument 1 of 'size_t Stream::readBytes(char*, size_t)'
size_t readBytes( char *buffer, size_t length); // read chars from stream into buffer
^
i tried to update the ide but i get the message that the newest version is installed already.
anybody an idea how to fix this? i would like to make changes in the field without internet thats why I'm trying to get this all working on my raspberry pi