Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
00001 #include "mqtt.h" 00002 #include "car_controller.h" 00003 #include <assert.h> 00004 #include "Road.h" 00005 #include "mbed.h" 00006 00007 00008 // mqtt singleton instance 00009 mqtt* mqtt::mqtt_singleton = NULL; 00010 00011 int main() 00012 { 00013 // setup callbacks and mqtt and wifi connection 00014 mqtt::instance()->setup_network(); 00015 00016 // start our simulation. will return once simulation completes 00017 start_simulation( mqtt::instance() ); 00018 00019 // shutdown 00020 mqtt::instance()->shutdown_network(); 00021 }
Generated on Wed Jul 13 2022 16:04:36 by
1.7.2