i tested a simplified version with only this parameter:
bool B4RELM327::begin1(B4RStream* ELMstream)
{
return elm327.begin(ELMstream->wrappedStream);
}
modification seems not rejected but wrapper still NOK
Vérification...
D:\B4R\B4R_AP~1\TEST_T~1\ELM327\Objects\bin\sketch\rELMduino.cpp: In member function 'bool B4R::B4RELM327::begin1(B4R::B4RStream*)':
rELMduino.cpp:40:52: error: no matching function for call to 'ELM327::begin(Stream*&)'
return elm327.begin(ELMstream->wrappedStream);
^
D:\B4R\B4R_AP~1\TEST_T~1\ELM327\Objects\bin\sketch\rELMduino.cpp:40:52: note: candidate is:
In file included from D:\B4R\B4R_AP~1\TEST_T~1\ELM327\Objects\bin\sketch\rELMduino.h:21:0,
from D:\B4R\B4R_AP~1\TEST_T~1\ELM327\Objects\bin\sketch\B4RDefines.h:27,
from D:\B4R\B4R_AP~1\TEST_T~1\ELM327\Objects\bin\sketch\rELMduino.cpp:19:
D:\B4R\B4R_AP~1\TEST_T~1\ELM327\Objects\bin\sketch\ELMduino.h:300:7: note: bool ELM327::begin(Stream&, char, uint16_t)
bool begin(Stream& stream, char protocol='0', uint16_t payloadLen = 40);
^
D:\B4R\B4R_AP~1\TEST_T~1\ELM327\Objects\bin\sketch\ELMduino.h:300:7: note: no known conversion for argument 1 from 'Stream*' to 'Stream&'
exit status 1
it seems now a new problem of conversion from 'Stream*' to 'Stream&
not clear for me, how to make it working ?