ArduinoCore-stm32l0 icon indicating copy to clipboard operation
ArduinoCore-stm32l0 copied to clipboard

Private members in CayenneLPP

Open MartinNel opened this issue 6 years ago • 1 comments

In our application we want to extend the CayenneLPP class, therefore we derived a class from the CayenneLPP class. However this derived class cannot access the common variables like buffer, maxsize and cursor in the CayenneLPP class since these are private members.

Can you change these member variables in the CayenneLPP class to be of type protected, this way derived classes can access these member variables.

Martin

MartinNel avatar Feb 06 '19 08:02 MartinNel

Martin, send me an e-mail (no pull request) to [email protected]

I do not like the CayenneLPP class as is either. IMHO it should be layered directly onto the LoRaWAN class, so that the TX buffer can be reused. To be honest, I just took it from the archieves and made it compile.

Hence it would be interesting to see what your needs are, so that this could be addressed in a sane way.

GrumpyOldPizza avatar Feb 06 '19 12:02 GrumpyOldPizza