Log file into HTML | Telit Cinterion IoT Developer Community
January 27, 2017 - 1:04pm, 1718 views
Hello guys.
I'm currently trying to access remotely the information produced in the log file (stdout chosen) in my BGS5T.
The thing is that I'm not being able to open the file and extract its information. Is there any way to do this?
File myFile = new File("A:/log.txt.0","file:///a:/"); { myFile.open(true); byte[] buffer = new byte[1024]; int len = myFile.read(buffer); String dados1 = new String(buffer,0,len,"UTF-8"); streamHTTP=""+ dados1 + ""; enviarDados(streamHTTP.getBytes(),streamHTTP.length()); }
Hello,
Could you also paste some log to show what's happening?
Thanks,
Bartłomiej
The presented error says " Cannot create directory".
Perhaps the source of the problem is the incorrect path for the root memory file of the modem. Should I change it? If so, what's the correct path?
Thanks
Hello,
The correct file path should look like "file:///a:/yourfilename".
Please paste the log if it didn't help.
Regards,
Bartłomiej