Pages: [1]
  Print  
Author Topic: File plugin not working  (Read 3058 times)
0 Members and 1 Guest are viewing this topic.
rferrolho
Newbie
*
Posts: 9


« on: 29 June , 2009, 10:01:59 »

Hi,

I'm currently working on an application that uses various KuneriLite plugins. The GPS works ok.

Now, I'm trying to do an updated log (txt or xml) and the plugin is not working.

Here is the according code:


function createLogFile():Void{
   loadVariables("http://127.0.0.1:1001/Basic/file?klCommand=create&klPath=files\\log.txt&", "", "POST");
}


function writeLog(dataToWrite):Void{
   loadVariables("http://127.0.0.1:1001/Basic/file?klCommand=append&klPath=files\\log.txt&klData="+dataToWrite+"&", "", "POST");
}


I tried also the File Plugin Example and it never stops loading. Do you have any idea of what may be wrong?


Regards
Logged
KL Admin
Moderator
Sr. Member
*****
Posts: 313


« Reply #1 on: 30 June , 2009, 01:44:30 »

Hello,

you can try without "POST", because POST will use quite different logic.
(For tracing the communication, please see klfwBasic.txt debug file in the devices /data folder)

Check also that 'files' folder exists. You can create one with 'mkdir' command.

I hope that helps,
Cheers
Logged
KL Admin
Moderator
Sr. Member
*****
Posts: 313


« Reply #2 on: 30 June , 2009, 01:47:07 »

Also verify that you check the error code properly and if the plug-in is selected from the Wizard.
Some devices work only if application is installed into 'trusted' folder.
Logged
rferrolho
Newbie
*
Posts: 9


« Reply #3 on: 30 June , 2009, 02:24:00 »

I'm testing it on a Nokia N81 with "File" plugin selected from the Wizard and I'm installing it on "e:\others\trusted\myapp". I have a bunch of files that are the application database and they're being installed on "e:\others\trusted\myapp\files" (included in the wizard as well), and it's all ok. So, the folder "files" exists.
The strange thing about it is that the File Plugin Example stucks on loading.

Regards.
Logged
rferrolho
Newbie
*
Posts: 9


« Reply #4 on: 30 June , 2009, 06:19:00 »

It's working now.
It was not retrieving the correct klError from the "exist" command.

Thanks for the replies.

Regards
Logged
Pages: [1]
  Print  
 
Jump to: