1

Hello Arduino community,

I am new to the Arduino community and would like to ask for help (I work on a Arduino TIAN). Indeed, since 2 3 weeks I try through simple programs to understand the operation of Arduino programming (I am a student). I am currently in the planning phase and I am in charge of debugging a number of issues (to make the old alumni programs of other promotions work for the continuity of the project). Unfortunately, it's been a while since I have a problem: my program works well but after 2 3 hours of operation it stops working and I do not receive the data. So I think the problem comes from the communication between Linux and microcontroller (with something like an overflow?). So I put here the 2 parts of my program intended precisely for this communication. In the hope of having an answer in help. Thanks.

Part 1 (main): void loop() {
CiaoData data = Ciao.read("restserver");
if(!data.isEmpty()){
    String id = data.get(0);
    String sender = data.get(1);
    String message = data.get(2);
    message.toUpperCase();
    execute(message,id);
}
yield(); } void execute(String cmd, String id) {
lvd.setup(cmd);
Ciao.writeResponse("restserver",id, td.toString());

}

Part 2 :

void CiaoRead() {
CiaoData data = Ciao.read("restserver");
if(!data.isEmpty())
{
    String id = data.get(0);
    String sender = data.get(1);
    String message = data.get(2);
    //message.toUpperCase();

    splitString(message,"=",LtT,62);

    beep         =LtT[0].toInt(); LtT[0]="";
    gen          =LtT[18].toInt(); LtT[18]="";
  } } void CiaoReadWrite() {
CiaoData data = Ciao.read("restserver");
if(!data.isEmpty())
{
    String id = data.get(0);
    String sender = data.get(1);
    String message = data.get(2);
    //message.toUpperCase();

//I have added the line  « Ciao.writeResponse("restserver",id,... » but I dont put it here because it to long and the problem come not from here I think.