Hello,
I finally get the SparkFun LTE CAT M1/NB-IoT Shield - SARA-R4 to work after upgrading the firmware from Ublox. In the second example it’s working great when we are sending a message over TCP. The problem is when we try to send a double quotes " that is regularly used in JSON message. This double quotes can pass and sent successfully when we write the message in the serial port following the example 02_TCP_Send_Hologram. But when we try to use our example or even hard code the message it can’t pass through the TCP !
as an example to replicate the issue, modify the 02_TCP_Send_Hologram to be
static String message = “write any thing here”;
sendHologramMessage(message);
and comment the other part related to serial input
if (Serial.available())
// {
// char c = Serial.read();
// // Read a message until a \n (newline) is received
// if (c == ‘\n’) {
// // Once we receive a newline. send the text.
// Serial.println("Sending: " + String(message));
// // Call lte.sendSMS(String number, String message) to send an SMS
// // message.
// sendHologramMessage(message);
// message = “”; // Clear message string
// } else {
// message += c; // Add last character to message
// }
// }
Here we get a successful message on Hologram. But when we try
static String message = " /" ";
sendHologramMessage(message);
We can’t get the message on the Hologram !
Note that using the serial input with /" we can get the double quote successfully in Hologram portal.
Is there a difference between entering the double quote in the serial input and hard code it in the message ? We tried different scenarios and using char instead of string and every time the double quote can pass only using the serial input in the example and fails otherwise !
Regards,
Ahmed