Demonstration program with support for the WNC M14A2A Cellular LTE Data Module added. An additional demonstration program was also added that shows a few other features (for chunked responses).

Dependencies:   easy-connect mbed-http

mbed-os-example-http(s) using WNC 14A2A Data Module

This application builds on the application provided by ARM (see It demonstrates how to make HTTP and HTTPS requests and parse the response from mbed OS 5.

There are a total of five demo's, which can be selected by modifying source/select-demo.h.

1. HTTP demo (DEMO_HTTP):


3. HTTP demo with socket re-use (DEMO_HTTP_SOCKET_REUSE).

  • Similar to the HTTP demo but reuses the socket for all interactions

4. HTTPS demo with socket re-use (DEMO_HTTPS_SOCKET_REUSE).

  • Similar to the HTTPS demo above

5. HTTP & HTTPS demo with socket re-use and chunked call-backs (DEMO_HTTPx)

Response parsing is done through [nodejs/http-parser](

To build

1. Open ``mbed_app.json`` and change the `network-interface` option to your connectivity method ([more info]( 2. Build the project in the online compiler or using mbed CLI. 3. Flash the project to your development board. 4. Attach a serial monitor to your board to see the debug messages.

Entropy (or lack thereof)

On all platforms except the FRDM-K64F and FRDM-K22F the application is compiled without TLS entropy sources. This means that your code is inherently unsafe and should not be deployed to any production systems. To enable entropy, remove the `MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES` and `MBEDTLS_TEST_NULL_ENTROPY` macros from mbed_app.json.

Tested on

  • K64F with Ethernet.
  • NUCLEO_F411RE with ESP8266.
  • AT&T Cellular IoT Starter Kit with WNC M14A2A Cellular Data Module

The WNCInterface class currently supports the following version(s):

  • MPSS: M14A2A_v11.50.164451 APSS: M14A2A_v11.53.164451


This library is released under the Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License and may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


RevisionDateWhoCommit message
19:0859fa46f32a 2017-04-23 Added tag att_cellular_K64_wnc_14A2A_20170423 for changeset 2a891e583ec4 default tip
18:2a891e583ec4 2017-04-19 JMF json file changes att_cellular_K64_wnc_14A2A_20170423
17:834e04159440 2017-04-19 JMF Updated Docs
16:2f0b693653c3 2017-04-19 JMF Updated Docs.
15:e96b74243a80 2017-04-19 JMF Added support for WNC14A2A
14:3c173847e681 2017-03-30 Jan Jongboom Bump mbed-http, treat response without Content-Length but with a body as chunked
13:5a210d227769 2017-03-30 Jan Jongboom Bump mbed-http
12:4c226ca06191 2017-03-28 Jan Jongboom Add socket reuse demo's
11:72c089200302 2017-03-28 Jan Jongboom Add socket reuse
10:e79a808ebbe8 2017-03-28 Jan Jongboom Add Lets Encrypt CA, so works again, bump mbed-http
9:6925d0c8c62f 2017-03-02 Jan Jongboom Bump mbed-http, now handles URLs without a path
8:960efb92bd84 2017-03-02 Jan Jongboom Bump mbed-http, now compiles against ARMCC
7:5d32909f77de 2017-02-24 Jan Jongboom Add chunked encoding, make HttpResponse own response headers
6:4a3ed1515bed 2017-02-23 Jan Jongboom Bump mbed-http, rely on is_body_complete() in HTTPS requests too
5:42f713b19337 2017-02-23 Jan Jongboom Rely on Content-Length, allocate body on the heap
4:27fd8efb5bab 2017-02-23 Jan Jongboom Increase MBEDTLS_MPI_MAX_SIZE so HTTPS calls to httpbin work as well
3:0f5859a9e3de 2017-02-16 Jan Jongboom Update mbed-http
2:4b4ac59ff9b0 2017-02-16 Jan Jongboom Move mbed-http into a separate library
1:3bff14db67c7 2017-02-16 Jan Jongboom Add mbed-http
0:85fdc69bc10c 2017-02-15 Jan Jongboom Initial commit