Other Parts Discussed in Thread: UNIFLASH,
Hi
Still having some issues with the file system commands via AT Command Demo.
I'm trying to transfer a root certificate file pem format, to /sys/cert/ca.der
I first use the file open, and it returns the fileID and a token. (for some reason last week , it did not return a token, but now it does)?
Then I do a file write, using the fileID.
When I close the file, I get error 10370 (SL_ERROR_FS_FILE_IS_OPEN_FOR_WRITE)
Does this mean I need to do a "at+filectl=COMMIT,-142064371,/sys/cert/ca.der," before closing the file? Also, if I do what is the returned new secure token used for?
Another question. The AT Command Demo has a receive buffer limited 1024 bytes, but all my certificates are around 1.6k. Extending the AT buffer to 2048 bytes, would this have any negative know on effect else where in the project.
Below are the actual strings I'm sending and receiving.
at+test
OK
at+filedel=/sys/cert/ca.der,
OK
at+fileopen=/sys/cert/ca.der,CREATE,57
+fileopen:382982955,-142064371
OK
at+filewrite=382982955,0,0,57,-----BEGIN CERTIF (Data truncated)
+filewrite:57
OK
at+fileclose=382982955,/sys/cert/ca.der,
ERROR: process command,-10370

