Example program demonstrating use of HTTP or HTTPS protocol over a cellular connection with httpbin.org using the MTSAS library. (Demonstrates GET,POST,basic-auth)
Diff: main.cpp
- Revision:
- 9:794c538a84aa
- Parent:
- 6:e5ea200c66c3
- Child:
- 10:c2fb1d56f3d2
--- a/main.cpp Mon Mar 23 18:02:28 2015 +0000 +++ b/main.cpp Mon Mar 23 18:26:38 2015 +0000 @@ -38,7 +38,7 @@ /// To configure the serial pins for the Dragonfly board, use: /// RADIO_TX = pin PC_7, RADIO_RX = pin PC_6 /// RADIO_RTS = pin PB_10,RADIO_CTS = pin PB_12 - /// Uncomment the following lines to use the Dragonfly board + /// Uncomment the following line to use the Dragonfly board //MTSSerialFlowControl* io = new MTSSerialFlowControl(PC_7, PC_6, PB_10, PB_12); /// Freescale KL46Z @@ -60,7 +60,7 @@ logFatal("Radio initialization failed"); return 1; } - radio->configureSignals(D4,D7,RESET); + Transport::setTransport(radio); //Set up HTTP interface