[CC1101] Added packet counter

pull/779/head
jgromes 2023-06-24 21:50:30 +02:00
rodzic 90368db27a
commit 4981ce9934
2 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -47,7 +47,7 @@ void setup() {
}
}
// use a counter to keep track of transmitted packets
// counter to keep track of transmitted packets
int count = 0;
void loop() {

Wyświetl plik

@ -80,6 +80,9 @@ void setFlag(void) {
transmittedFlag = true;
}
// counter to keep track of transmitted packets
int count = 0;
void loop() {
// check if the previous transmission finished
if(transmittedFlag) {
@ -113,7 +116,7 @@ void loop() {
// you can transmit C-string or Arduino string up to
// 256 characters long
transmissionState = radio.startTransmit("Hello World!");
transmissionState = radio.startTransmit("Hello World! #" + String(count++));
// you can also transmit byte array up to 256 bytes long
/*