jpmeijers / RN2483-Arduino-Library

Arduino C++ code to communicate with a Microchip RN2483 module
Apache License 2.0
84 stars 60 forks source link

add method to send bytes #8

Closed ubergesundheit closed 7 years ago

ubergesundheit commented 7 years ago

Please review my solution to submit a byte array. I am unsure about the size of msgBuffer and the target for memcpy.

jpmeijers commented 7 years ago

Line 233 in the .cpp file: char msgBuffer[size*2]; According to me this should be: char msgBuffer[size*2]+1; to have space for the end of string character.

ubergesundheit commented 7 years ago

You are right! I've made the changes