![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
V.06 11/3
Dependencies: FT6206 SDFileSystem SPI_TFT_ILI9341 TFT_fonts
Fork of ATT_AWS_IoT_demo by
Diff: AWS_openssl/aws_iot_src/protocol/mqtt/aws_iot_embedded_client_wrapper/platform_mbed_os/openssl/network.cpp
- Revision:
- 28:54d9a550adf1
- Parent:
- 23:b9ff83dc965f
- Child:
- 29:f71a0be59b99
--- a/AWS_openssl/aws_iot_src/protocol/mqtt/aws_iot_embedded_client_wrapper/platform_mbed_os/openssl/network.cpp Tue Feb 07 16:18:57 2017 +0000 +++ b/AWS_openssl/aws_iot_src/protocol/mqtt/aws_iot_embedded_client_wrapper/platform_mbed_os/openssl/network.cpp Mon Oct 09 21:13:49 2017 +0000 @@ -37,6 +37,9 @@ INFO("...Using Avnet Shield and AT&T wireless LTE"); rc = eth_iface.init(NULL, &pc); INFO("WNC Module %s initialized (%02X).", rc?"IS":"IS NOT", rc); + + //ji if test card, skip for now + if( !rc ) { ERROR("DHCP failed."); return rc; @@ -45,10 +48,17 @@ eth_iface.connect(); INFO("...IP Address: %s ", eth_iface.getIPAddress()); + + // Get SIM card number (ICCID) eth_iface.getICCID(&str); strcpy(iccidName, str.c_str()); INFO("...ICCID: %s", iccidName); + + //get object + //INFO("Reading Certificate"); + //eth_iface.getObject(); + return rc; }