ME910 changes

Dependencies:   Cayenne-MQTT-mbed-M1 X_NUCLEO_IKS01A1 mbed mtsas-m1

Fork of 5_Dragonfly_Cayenne_Sprint_IKS01A1 by Scott Hoppe

Revision:
5:a2d72fe4d7bd
Parent:
4:2b412949efb9
Child:
6:d70ed27847fe
diff -r 2b412949efb9 -r a2d72fe4d7bd main.cpp
--- a/main.cpp	Tue Apr 25 22:02:01 2017 +0000
+++ b/main.cpp	Fri Sep 01 19:55:21 2017 +0000
@@ -15,16 +15,15 @@
 typedef CayenneMQTT::MQTTClient<MQTTNetwork<Cellular>, MQTTTimer> MQTTClient;
 
 // Cayenne authentication info. This should be obtained from the Cayenne Dashboard.
-string username = "MQTT-USERNAME";
-string password = "MQTT-PASSWORD";
-string clientID = "MQTT-CLIENTID";
+string username = "3f842710-8e51-11e7-a5d9-9de9b49680ec";
+string password = "46f0e2add1dbcd1d7cab6fde2a2b93c4423a377a";
+string clientID = "b0358dd0-8f43-11e7-b153-197ebdab87be";
 
 DigitalOut Led1Out(LED1);
 
 // Debug serial port
 //static Serial debug(USBTX, USBRX);
 Serial pc(USBTX, USBRX);
-
 // MTSSerialFlowControl - serial link between processor and radio
 static MTSSerialFlowControl* io;
 
@@ -52,15 +51,17 @@
 */
 bool init_mtsas()
 {
-    io = new MTSSerialFlowControl(RADIO_TX, RADIO_RX, RADIO_RTS, RADIO_CTS);
+
+    io = new MTSSerialFlowControl(D8,D2,D3,D6);//This is the only thing that I have changed!
     if (! io)
         return false;
-
+    
     io->baud(115200);
     radio = CellularFactory::create(io);
     if (! radio)
         return false;
 
+    radio->setApn("wireless.twilio.com");
     Transport::setTransport(radio);
     while (! radio->connect()) {
         logError("failed to bring up PPP link");
@@ -79,7 +80,7 @@
 {
     switch (message.topic)  {
     case COMMAND_TOPIC:
-        printf("topic=Command");
+        pc.printf("topic=Command");
         break;
     case CONFIG_TOPIC:
         printf("topic=Config");