Fork of Hello MQTT, using mbed TLS for secure mqtt transport
Fork of HelloMQTT by
Revision 1:a1d5c7a6acbc, committed 2014-02-05
- Comitter:
- icraggs
- Date:
- Wed Feb 05 10:50:15 2014 +0000
- Parent:
- 0:0cae29831d01
- Child:
- 2:638c854c0695
- Commit message:
- Add copyright statement to main program
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
| mbed-rtos.lib | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Feb 04 22:38:15 2014 +0000
+++ b/main.cpp Wed Feb 05 10:50:15 2014 +0000
@@ -1,10 +1,25 @@
+/*******************************************************************************
+ * Copyright (c) 2014 IBM Corp.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * and Eclipse Distribution License v1.0 which accompany this distribution.
+ *
+ * The Eclipse Public License is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ * and the Eclipse Distribution License is available at
+ * http://www.eclipse.org/org/documents/edl-v10.php.
+ *
+ * Contributors:
+ * Ian Craggs - initial API and implementation and/or initial documentation
+ *******************************************************************************/
+
#include "mbed.h"
#include "EthernetInterface.h"
#include "C12832_lcd.h"
#include "MQTTPacket.h"
-
DigitalOut myled(LED2);
C12832_LCD lcd;
@@ -53,13 +68,15 @@
return 0;
}
-int main() {
+int main()
+{
EthernetInterface eth;
eth.init(); //Use DHCP
eth.connect();
lcd.printf("IP Address is %s\n", eth.getIPAddress());
- while(1) {
+ while(1)
+ {
myled = 1;
publish();
wait(0.2);
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-rtos.lib Wed Feb 05 10:50:15 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed-rtos/#f88660a9bed1
