
This is an example based on mbed-os cellular APIs that demonstrates a TCP or UDP echo transaction with a public echo server.
Revision 34:6f85d44597ac, committed 2019-02-15
- Comitter:
- mbed_official
- Date:
- Fri Feb 15 15:26:44 2019 +0000
- Parent:
- 33:e36957d5faa1
- Child:
- 35:125ae7126e4f
- Commit message:
- Merge pull request #117 from AnotherButler/patch-1
Add and update links to README.md
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-cellular
Changed in this revision
README.md | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/README.md Wed Feb 13 18:37:19 2019 +0000 +++ b/README.md Fri Feb 15 15:26:44 2019 +0000 @@ -2,6 +2,8 @@ This is an example based on `mbed-os` cellular APIs that demonstrates a TCP or UDP echo transaction with a public echo server. +(Note: To see this example in a rendered form you can import into the Arm Mbed Online Compiler, please see [the documentation](https://os.mbed.com/docs/mbed-os/latest/apis/cellular-api.html#cellular-example-connection-establishment).) + ## Getting started This particular cellular application uses a cellular network and network-socket APIs that are part of [`mbed-os`](https://github.com/ARMmbed/mbed-os). @@ -10,7 +12,7 @@ After registration, the driver opens a point-to-point protocol (PPP) pipe using LWIP with the cellular modem and connects to internet. This driver currently supports UART data connection type only between your cellular modem and MCU. -For more information on Arm Mbed OS cellular APIs and porting guide, please visit the [Mbed OS cellular API](https://os.mbed.com/docs/latest/reference/cellular.html) and [contributing documentation](https://os.mbed.com/docs/latest/reference/contributing.html). +For more information on Arm Mbed OS cellular APIs and porting guide, please visit the [Mbed OS cellular API](https://os.mbed.com/docs/latest/reference/cellular.html) and [contributing documentation](https://os.mbed.com/docs/mbed-os/latest/contributing/index.html). ### Download the application @@ -76,7 +78,7 @@ ### Board support -The [cellular modem driver](https://github.com/ARMmbed/mbed-os/tree/master/features/cellular/framework/API) in this example uses PPP with an Mbed-supported external IP stack. It supports targets when modem exists on the Mbed Enabled target as opposed to plug-in modules (shields). For more details, please see our [Mbed OS cellular documentation](https://os.mbed.com/docs/latest/reference/cellular-api.html). +The [cellular modem driver](https://github.com/ARMmbed/mbed-os/tree/master/features/cellular/framework/API) in this example uses PPP with an Mbed-supported external IP stack. It supports targets when modem exists on the Mbed Enabled target as opposed to plug-in modules (shields). For more details, please see our [Mbed OS cellular documentation](https://os.mbed.com/docs/mbed-os/latest/apis/cellular-api.html). Currently supported boards with onboard modem chips are:
--- a/main.cpp Wed Feb 13 18:37:19 2019 +0000 +++ b/main.cpp Fri Feb 15 15:26:44 2019 +0000 @@ -207,6 +207,11 @@ int main() { print_function("\n\nmbed-os-example-cellular\n"); + print_function("\n\nBuilt: %s, %s\n", __DATE__, __TIME__); +#ifdef MBED_CONF_NSAPI_DEFAULT_CELLULAR_PLMN + print_function("\n\n[MAIN], plmn: %s\n", MBED_CONF_NSAPI_DEFAULT_CELLULAR_PLMN); +#endif + print_function("Establishing connection\n"); #if MBED_CONF_MBED_TRACE_ENABLE trace_open();