communication_ss_r250n
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédenteProchaine révisionLes deux révisions suivantes | ||
communication_ss_r250n [2020/10/12 18:30] – Mushussu | communication_ss_r250n [2020/10/12 19:42] – Mushussu | ||
---|---|---|---|
Ligne 2: | Ligne 2: | ||
<code java> | <code java> | ||
- | import processing.net.*; | + | import processing.net.*; |
- | Client | + | |
+ | Client | ||
String inString; | String inString; | ||
void setup() { | void setup() { | ||
size (300, 150); | size (300, 150); | ||
- | | + | |
- | String mdp = "1234"; | + | String mdp = "z"; |
- | | + | |
} | } | ||
void draw() { | void draw() { | ||
- | if (myClient.available() > 0) { | + | if (c.available() > 0) { |
background(0); | background(0); | ||
- | inString = myClient.readString(); | + | inString = c.readString(); |
println(inString); | println(inString); | ||
} | } | ||
Ligne 22: | Ligne 23: | ||
void keyPressed() { | void keyPressed() { | ||
- | | + | |
} | } | ||
</ | </ | ||
+ | |||
+ | {{ : | ||
{{tag> | {{tag> |
communication_ss_r250n.txt · Dernière modification : 2021/12/23 05:51 de Mushussu