       flag_sent = 0;
     }
     os_runloop_once();
-}
+}

    char longitude[50];
    float_to_string(coord.lng, longitude, 8);

    // Mounting JSON
    String mydataStr = "{\"lat\":\""+String(latitude)+"\",\"lng\":\""+String(longitude)+"\"}";

    // Converting String into uint8_t array
    uint8_t mydata[mydataStr.length()+1];
    mydataStr.getBytes(mydata,mydataStr.length()+1);
  
    
    // Check if there is not a current TX/RX job running

    DR_SF8C : DR6
    */
    // Set data rate and transmit power for uplink (note: txpow seems to be ignored by the library)
    LMIC_setDrTxpow(DR_SF10,14);

    // Init coord
    gps_get_coordinates_ublox(&coord);
