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.
Dependencies: WebSocketClient mbed
main.cpp
00001 #include "readfile.hpp" 00002 00003 LocalFileSystem local("local"); 00004 00005 int main() 00006 { 00007 Coordinateur coord(p13, p14); 00008 Routeur rout(p13, p14); 00009 00010 ReadFile readfile; 00011 bool coordBool = false; 00012 coordBool = readfile.setConfigCoord(&coord, "/local/cgfcoord.txt"); // Si retourne vrai, c'est le coordinateur 00013 if (!coordBool) 00014 readfile.setConfigRouteur(&rout, "/local/cgfrout.txt"); // Sinon c'est un routeur 00015 00016 wait(2); 00017 00018 while(true) 00019 { 00020 if (coordBool) 00021 coord.getBytes(); // Attend pour recevoir les trames 00022 else 00023 rout.getValues(); // Prend les valeurs des capteurs 00024 } 00025 }
Generated on Sat Jul 16 2022 02:42:16 by
 1.7.2
 1.7.2