Embed client working with Cell network.

Dependencies:   C027Interface

Fork of U_Blox_DeviceConnector by Sarah Marsh

Revision:
10:4a3aaf2e130a
Parent:
5:b7d7ca715fdb
Child:
13:c44e318674db
--- a/main.cpp	Wed Aug 03 12:00:18 2016 +0100
+++ b/main.cpp	Wed Aug 03 13:00:25 2016 +0100
@@ -255,6 +255,20 @@
 
 // Entry point to the program
 int main() {
+
+#ifndef MBEDTLS_ENTROPY_HARDWARE_ALT
+
+#ifdef MBEDTLS_TEST_NULL_ENTROPY
+#warning "mbedTLS security feature is disabled. Connection will not be secure !! Implement proper hardware entropy for your selected hardware."
+
+#else
+
+#error "This hardware does not have entropy, endpoint will not register to Connector.\
+You need to enable NULL ENTROPY for your application, but if this configuration change is made then no security is offered by mbed TLS.\
+Add MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES and MBEDTLS_TEST_NULL_ENTROPY in mbed_app.json macros to register your endpoint."
+#endif
+
+#endif
     status_ticker.attach_us(blinky, 250000);
 
     // Keep track of the main thread