liaison bluetooth entre gros robot -> panneau ou gros robot -> petit robot

Fork of liaison_Bluetooth by j d

Revision:
15:7d159715eb14
Parent:
14:7118ea22e01f
Child:
16:1c3ff1ff1bc0
--- a/LiaisonBluetooth.cpp	Mon May 07 13:43:57 2018 +0000
+++ b/LiaisonBluetooth.cpp	Mon May 07 13:59:22 2018 +0000
@@ -8,7 +8,7 @@
 }
 */
 
-LiaisonBluetooth::LiaisonBluetooth(Serial *bluetooth, Serial *pc) : m_bluetooth(bluetooth), m_state(true), m_pc(pc)
+LiaisonBluetooth::LiaisonBluetooth(Serial *bluetooth, Serial *pc) : m_bluetooth(bluetooth), m_pc(pc), m_state(true)
 {
 }
 
@@ -87,7 +87,7 @@
     m_bluetooth->putc(MARQUEUR_FIN_TRAME);
 }
 
-void envoyer_short(char indentifiant, short data) {
+void LiaisonBluetooth::envoyer_short(char identifiant, short data) {
     char buffer[7];
     memset(buffer, '\0', 7);
     sprintf(buffer, "%hd", data);
@@ -113,7 +113,7 @@
     free(paquet);
 }
 
-short convertir_score(Paquet *paquet) {
+short convertir_score(PaquetDomotique *paquet) {
     char buff[20];
     memset(buff, '\0', 20);
     strncpy(buff, paquet->data, paquet->longueur);