Differences

This shows you the differences between two versions of the page.

Link to this comparison view

pm:prj2025:mdinica:alin_ioan.alexandru [2025/05/28 13:26]
alin_ioan.alexandru [Software Design]
pm:prj2025:mdinica:alin_ioan.alexandru [2025/05/28 13:27] (current)
alin_ioan.alexandru [Software Design]
Line 188: Line 188:
   updateLCD = true;   updateLCD = true;
 } }
 +
 +</​code>​
 +
 +Comunicare prin bluetooth:
 +
 +<code cpp>
 +
 +if (SerialBT.available()) {
 +    String mesaj = SerialBT.readStringUntil('​\n'​);​
 +    mesaj.trim();​
 +    mesaj.toLowerCase();​
 +
 +    if (mesaj == "​start"​) {
 +      startTimer(5 * 60);  // 5 minute
 +      SerialBT.println("​Timer pornit"​);​
 +    } else if (mesaj == "​reset"​) {
 +      stopTimer();​
 +      SerialBT.println("​Timer oprit/​resetat"​);​
 +    } else {
 +      SerialBT.println("​Comanda necunoscuta"​);​
 +    }
 +  }
  
 </​code>​ </​code>​
pm/prj2025/mdinica/alin_ioan.alexandru.1748427994.txt.gz · Last modified: 2025/05/28 13:26 by alin_ioan.alexandru
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0