function run()
{
    $jsonString = file_get_contents('php://input');
    $log_file = 'log';
    if (!empty($jsonString)) {
        $accidentReport = extractReportData($jsonString);
        $accidentReport->dateTime = getThailandTime();
        //save data To MySQL
        $con = connect();
        insertAccidentData($con, $accidentReport);
        $con->close();
        //save data To log file
        logAccidentReport($log_file, $accidentReport);
        //respond from server to android
        $con1 = connect();
        $msg = selectMessage($con1, '0000');
        $msgJson = packReportAcknowledge($msg);
        Acknowledge($msgJson);
        $con1->close();
    }
}
function Test_packReportAcknowledge()
{
    $result = packReportAcknowledge("TEST MESSAGE");
    echo $result;
}