This class adds HTTP, FTP and CellLocate client support for u-blox modules for the C027 and C030 boards (excepting the C030 N2xx flavour) from mbed 5.5 onwards. The HTTP, FTP and CellLocate operations are all hosted on the module, minimizing RAM consumption in the mbed MCU. It also sub-classes ublox-cellular-driver-gen to bring in SMS, USSD and modem file system support if you need to use these functions at the same time as the cellular interface.
Dependencies: ublox-at-cellular-interface
Dependents: example-ublox-at-cellular-interface-ext HelloMQTT ublox_new_driver_test example-ublox-at-cellular-interface-ext ... more
Revision 19:ee06f3b2b078, committed 2019-01-31
- Comitter:
- fahim.alavi@u-blox.com
- Date:
- Thu Jan 31 18:14:52 2019 +0500
- Parent:
- 18:071ae6c6e581
- Child:
- 20:737d307fd4d6
- Commit message:
- Multiple template mbed app has been merged and http-timeout can be set from json file
Changed in this revision
--- a/TESTS/unit_tests/cell-locate/template_mbed_app.txt Wed Jan 30 16:44:51 2019 +0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -{ - "config": { - "cell-locate-mga-token": { - "help": "Your Cell Locate MGA token, required for TCP testing. A tokane can be obtained from https://www.u-blox.com/en/assistnow-service-registration-form", - "value": "\"mymgatoken\"" - }, - "run-cell-locate-tcp-server-test": { - "help": "Set to true to run tests over TCP as well as over UDP", - "value": 1 - } - }, - "target_overrides": { - "*": { - "target.features_add": ["COMMON_PAL"], - "platform.stdio-convert-newlines": true - } - } -} -
--- a/TESTS/unit_tests/ftp/template_mbed_app.txt Wed Jan 30 16:44:51 2019 +0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,39 +0,0 @@ -{ - "config": { - "ftp-server": { - "help": "An FTP server to use when running the FTP tests", - "value": "\"test.rebex.net\"" - }, - "ftp-username": { - "help": "The user name for the FTP server account", - "value": "\"demo\"" - }, - "ftp-password": { - "help": "The password for the FTP server account", - "value": "\"password\"" - }, - "ftp-use-passive": { - "help": "Set to true to use passive mode, otherwise false (defaults to true, since this is needed for most cases)", - "value": true - }, - "ftp-server-supports-write": { - "help": "Set to true if the FTP server supports PUT, rename, MKDIR and delete, otherwise set to false", - "value": false - }, - "ftp-filename": { - "help": "A filename to use during FTP tests. This file must already exist on the server if the server does not support write", - "value": "\"readme.txt\"" - }, - "ftp-dirname": { - "help": "A directory name to use during FTP tests. This directory must already exist on the server if the server does not support write. If the server does support write, this must not be a substring of ftp-filename. ", - "value": "\"pub\"" - } - }, - "target_overrides": { - "*": { - "target.features_add": ["COMMON_PAL"], - "platform.stdio-convert-newlines": true - } - } -} -
--- a/TESTS/unit_tests/http/main.cpp Wed Jan 30 16:44:51 2019 +0500 +++ b/TESTS/unit_tests/http/main.cpp Thu Jan 31 18:14:52 2019 +0500 @@ -54,7 +54,11 @@ #endif // The time to wait for a HTTP command to complete -#define HTTP_TIMEOUT 20000 +#ifndef MBED_CONF_APP_HTTP_TIMEOUT +#define HTTP_TIMEOUT 10000 +#else +#define HTTP_TIMEOUT MBED_CONF_APP_HTTP_TIMEOUT +#endif // The HTTP echo server, as described in the // first answer here:
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TESTS/unit_tests/template_mbed_app.txt Thu Jan 31 18:14:52 2019 +0500 @@ -0,0 +1,54 @@ +{ + "config": { + "ftp-server": { + "help": "An FTP server to use when running the FTP tests", + "value": "\"test.rebex.net\"" + }, + "ftp-username": { + "help": "The user name for the FTP server account", + "value": "\"demo\"" + }, + "ftp-password": { + "help": "The password for the FTP server account", + "value": "\"password\"" + }, + "ftp-use-passive": { + "help": "Set to true to use passive mode, otherwise false (defaults to true, since this is needed for most cases)", + "value": true + }, + "ftp-server-supports-write": { + "help": "Set to true if the FTP server supports PUT, rename, MKDIR and delete, otherwise set to false", + "value": false + }, + "ftp-filename": { + "help": "A filename to use during FTP tests. This file must already exist on the server if the server does not support write", + "value": "\"readme.txt\"" + }, + "ftp-dirname": { + "help": "A directory name to use during FTP tests. This directory must already exist on the server if the server does not support write. If the server does support write, this must not be a substring of ftp-filename. ", + "value": "\"pub\"" + }, + "cell-locate-mga-token": { + "help": "Your Cell Locate MGA token, required for TCP testing. A tokane can be obtained from https://www.u-blox.com/en/assistnow-service-registration-form", + "value": "\"mymgatoken\"" + }, + "run-cell-locate-tcp-server-test": { + "help": "Set to true to run tests over TCP as well as over UDP", + "value": 1 + }, + "http-timeout": { + "help": "Set http request timeout default value in ms", + "value": 30000 + }, + "debug-on": { + "help": "Set to true to get AT interface debug", + "value": true + } + }, + "target_overrides": { + "*": { + "platform.stdio-convert-newlines": true + } + } +} +