Xin Zhang / Mbed OS samplemqtt

Dependencies:   azure-iot-c-sdk-f767zi

Fork of samplemqtt by Xin Zhang

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed-os/mbed.h"
00002 #include "iothub_client_sample_mqtt.h"
00003 
00004 Serial pc(USBTX, USBRX, 115200);
00005 DigitalOut led3(LED3);
00006 NetworkInterface* network;
00007 
00008 int main(void)
00009 {
00010     
00011     iothub_client_sample_mqtt_run();
00012     while (true)
00013     {
00014             led3 = !led3;
00015             wait(10);
00016             
00017     }
00018 
00019     
00020     return 0;
00021 }
00022 
00023