11 liens privés
while (Serial.available()<9) {} // Wait 'till there are 9 Bytes waiting
for(int n=0; n<9; n++)
RFin_bytes[n] = Serial.read(); // Then: Get them.
//zoomkat 9-9-10 simple delimited ',' string parce
//from serial port input (via serial monitor)
//and print result out serial port
// CR/LF could also be a delimiter
String readString;
void setup() {
Serial.begin(9600);
}
void loop() {
//expect a string like wer,qwe rty,123 456,hyre kjhg,
//or like hello world,who are you?,bye!,
while (Serial.available()) {
delay(1); //small delay to allow input buffer to fill
char c = Serial.read(); //gets one byte from serial buffer
if (c == ',') {break;} //breaks out of capture loop to print readstring
readString += c; //makes the string readString
}
if (readString.length() >0) {
Serial.println(readString); //prints string to serial port out
//do stuff here
readString=""; //clears variable for new input
}
}
pince a tiques
texte avec freecad
support casque pour lampe décathlon
support téléphone pour vélo
84F25845
Philagro France
HM8PX-J9XDB-QMKX7-P92HG-B8GVJ
MAK
0/5000
84F25845
Philagro France
PTDYH-866R3-XR6X6-3QB7V-WX7JY
KMS
0/0
47400611
PHILAGRO FRANCE0478643210
P6YT9-VQ9VP-GGP49-VJ72K-PMCHM
KMS
0/0
A9EAEED2
Sumitomo Chemical Agro Europe
82JXR-7QJ6J-32424-X3Q94-3J4DX
KMS
0/0
A9EAEED2
Sumitomo Chemical Agro Europe
Q3QFM-4G7G9-PKPXV-C9HBM-CXWDC
MAK
0/5000