Sending and reception of big data file (1kB example)
Dependencies: modem_ref_helper CRC DebouncedInterrupt
Diff: modem_callbacks.cpp
- Revision:
- 11:dc0e19b2d4a0
- Parent:
- 6:33dfecc85ebf
- Child:
- 15:9a9cfb0c3c4e
--- a/modem_callbacks.cpp Thu Oct 11 14:36:35 2018 +0000 +++ b/modem_callbacks.cpp Fri Aug 02 09:02:21 2019 +0000 @@ -16,7 +16,7 @@ if (ram_fs_read(fid, offset, length, data)) { - modem_respond(0, ALP_ERR_FILE_NOT_FOUND, id); + modem_respond(ALP_ERR_FILE_NOT_FOUND, id); } else { @@ -45,7 +45,7 @@ g_file_modified.put(touch); } - modem_respond(0, err, id); + modem_respond(err, id); } void my_read_fprop(u8 fid, int id) @@ -58,19 +58,19 @@ } else { - modem_respond(0, ALP_ERR_FILE_NOT_FOUND, id); + modem_respond(ALP_ERR_FILE_NOT_FOUND, id); } } void my_flush(u8 fid, int id) { // No flush in this file system - modem_respond(0, ALP_ERR_NONE, id); + modem_respond(ALP_ERR_NONE, id); } void my_delete(u8 fid, int id) { - modem_respond(0, (ram_fs_delete(fid))? ALP_ERR_FILE_NOT_FOUND : ALP_ERR_NONE, id); + modem_respond((ram_fs_delete(fid))? ALP_ERR_FILE_NOT_FOUND : ALP_ERR_NONE, id); }