diff --git a/site/accesBase.php b/site/accesBase.php index 459ed1f..944867e 100644 --- a/site/accesBase.php +++ b/site/accesBase.php @@ -98,7 +98,7 @@ function load($tmp_name, $name) { - $dossier = "IMA3_P10/site/upload/"; + $dossier = "upload/"; $fichier = "binaire.c"; $taille_max = 100000; $taille = filesize($tmp_name); diff --git a/site/form.php b/site/form.php new file mode 100644 index 0000000..418e21d --- /dev/null +++ b/site/form.php @@ -0,0 +1,5 @@ +
+ + Fichier : + +
diff --git a/site/reception.php b/site/reception.php index 24081d6..7c81cd0 100644 --- a/site/reception.php +++ b/site/reception.php @@ -46,7 +46,7 @@ if(isset($_POST['sensor'])) if(!$err) { - file_put_contents('IMA3_P10/site/upload/inventaire.ini', $ini); + file_put_contents('upload/inventaire.ini', $ini); $upload = load($_FILES['fichier']['tmp_name'], $_FILES['fichier']['name']); if($upload) { diff --git a/site/upload/binaire.c b/site/upload/binaire.c index 4240ab6..752fe7a 100644 --- a/site/upload/binaire.c +++ b/site/upload/binaire.c @@ -1,32 +1,18 @@ #include // for the input/output register #include #include -#include #include -#include #include - +#include #define PRESCALER 1024 #define TIME_SLOT 20 -#define NB_TICK 113 #define BAUDRATE 103 -void send_serial(unsigned char c) -{ - loop_until_bit_is_set(UCSR0A, UDRE0); - UDR0 = c; -} - -void send_msg(void){ - char msg[] = "Bonjour\r\n"; - while(1){ //nécessaire pour eviter d'executer la tache une seule fois - int i=0; - for(i=0; i -172.26.145.1112 -172.26.145.1131 - \ No newline at end of file -- libgit2 0.21.2