Title is a bit messy, but i dont know how to simplify it. This is what i want to do:
nodeReceivedData[packetSize+1] = itoa(LoRa.packetRssi(), [output], 10);
itoa()
always asks for a input variable, output variable and a size modifier. What I want to do, is to avoid having to make a temporary variable to then assign it's value to the actual variable I want that data to be. Is there something that can do this?
I also tried:
itoa(LoRa.packetRssi(), &nodeReceivedData[packetSize+1], 10);
but since nodeReceivedData
is a byte
type variable, itoa()
won't accept it.
Extra info:
int LoRaClass::packetRssi()
byte nodeReceivedData[50]