SDK Related FAQ

Where are my SDK generated files

I cannot find /tmp/myfile which is generated with SDK. Where is it? See /mnt/sdk/tmp/myfile.

How can I configure SDK scripts in the cli?

The script is taken over by the script name:

cli set +

sdk.status=1
sdk.trigger.0.name=SMS-RECEIVED
sdk.trigger.0.event=sms-received
sdk.script.0.name=sms-control.are
sdk.script.0.desc=SMS control daemon
sdk.job.0.name=SMS-CONTROL
sdk.job.0.trigger=0
sdk.job.0.script=0

How can I get the file size?

int filesize(string file) {
  fd=fopen(file,"r");
  if (fd) {
    fseek(fd,-1);
    size=ftell(fd);
    fclose(fd);
    return size;
  } else {
    return -1;
  }  
}