You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i have a problem while using this library. If i send a message to the arduino, i can only send a payload under 16 characters. As soon as I send anything above 15 characters, my String is empty.
I just want to store a message like this:
text = myLora.getRX();
and then work with it.
Am i doing something wrong?
I know this is not much information from my side, but i dont know where to start.
One thing that i noticed is: When i restart the arduino, i can receive a longer message once. After that i can only receive 15 characters.
Code:
switch(myLora.txCnf("!"))
{
case TX_SUCCESS:
{
Serial.println("TX successful and acknowledged");
break;
}
case TX_WITH_RX:
{
String received = myLora.getRx();
received = myLora.base16decode(received);
debugSerial.println("debug" + received);
delay(100);
//here i just cut the string and store the parts in global variables
int commaIndex = received.indexOf('$');
int secondCommaIndex = received.indexOf('$', commaIndex + 1);
int thirdCommaIndex = received.indexOf('$', secondCommaIndex +1);
var1 = received.substring(0, commaIndex);
var2 = received.substring(commaIndex+1, secondCommaIndex);
var3 = received.substring(secondCommaIndex + 1, thirdCommaIndex);
var3 = received.substring(thirdCommaIndex + 1); //To the end of the string
Hey,
i have a problem while using this library. If i send a message to the arduino, i can only send a payload under 16 characters. As soon as I send anything above 15 characters, my String is empty.
I just want to store a message like this:
text = myLora.getRX();
and then work with it.
Am i doing something wrong?
I know this is not much information from my side, but i dont know where to start.
One thing that i noticed is: When i restart the arduino, i can receive a longer message once. After that i can only receive 15 characters.
Code:
switch(myLora.txCnf("!"))
{
case TX_SUCCESS:
{
Serial.println("TX successful and acknowledged");
break;
}
case TX_WITH_RX:
{
String received = myLora.getRx();
received = myLora.base16decode(received);
debugSerial.println("debug" + received);
delay(100);
//here i just cut the string and store the parts in global variables
int commaIndex = received.indexOf('$');
int secondCommaIndex = received.indexOf('$', commaIndex + 1);
int thirdCommaIndex = received.indexOf('$', secondCommaIndex +1);
var1 = received.substring(0, commaIndex);
var2 = received.substring(commaIndex+1, secondCommaIndex);
var3 = received.substring(secondCommaIndex + 1, thirdCommaIndex);
var3 = received.substring(thirdCommaIndex + 1); //To the end of the string
The text was updated successfully, but these errors were encountered: