From ceb0641c883902740765fea4e04af11095fc9e30 Mon Sep 17 00:00:00 2001 From: Timm Bogner <64260873+timmbogner@users.noreply.github.com> Date: Mon, 24 Oct 2022 13:27:04 -0500 Subject: [PATCH 1/2] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2057643..354f675 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,8 @@ The Farm Data Relay System is an easy way to communicate with remote IOT devices Devices are classified into two types: **Gateways** and **User nodes**. Gateways comprise the infrastructure of the network, moving data in pre-determined directions to provide coverage to all devices. User nodes allow the user to exchange data with the gateways. Each gateway is identified with an 8-bit physical hex address (MAC), while nodes use 16-bit integers to identify datapoints as they move through the system. +If you are having fun with FDRS, **[please consider supporting me](https://www.buymeacoffee.com/TimmB)** so that I can spend more time building it. + ## Getting Started - To install FDRS, download the project folder by clicking the “Clone or download” button and then clicking “Download ZIP”. You should then move it to your Arduino 'libraries' folder to complete the installation. - After installing, edit the 'src/fdrs_globals.h' file with your WiFi credentials and other global parameters. @@ -53,7 +55,6 @@ My recommended method of accessing your data is using a Raspberry Pi linked to a ## Thank you **...very much for checking out my project!** I truly appreciate everyone who has reached out with contributions and assistance, especially those featured in the "Contributors" section. If you have any questions, comments, issues, or suggestions please don't heasitate to contact me at timmbogner@gmail.com or open a discussion here on Github. -Winter is coming, which means my budget will be quite thin. **If you are having fun with FDRS, [please consider supporting me](https://www.buymeacoffee.com/TimmB) so that I can spend more time building it.** Many thanks go to the ever-instructional [**Andreas Spiess**](https://www.youtube.com/channel/UCu7_D0o48KbfhpEohoP7YSQ). His insight and ideas took this project from a roughly-hewn stone to the "[diamond](https://youtu.be/6JI5wZABWmA)" you see today. From 6e2f64a2e8d15c54bef8a3c6a0c938fe3a40fb02 Mon Sep 17 00:00:00 2001 From: Timm Bogner <64260873+timmbogner@users.noreply.github.com> Date: Sat, 29 Oct 2022 09:06:50 -0500 Subject: [PATCH 2/2] fixed error with nodes sending esp-now It wasn't clearing the buffer of readings after sending, now it does. --- src/fdrs_node.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fdrs_node.h b/src/fdrs_node.h index 25c1147..6a396f2 100644 --- a/src/fdrs_node.h +++ b/src/fdrs_node.h @@ -409,13 +409,16 @@ bool sendFDRS() { DBG("Sending FDRS Packet!"); #ifdef USE_ESPNOW esp_now_send(gatewayAddress, (uint8_t *) &fdrsData, data_count * sizeof(DataReading)); + esp_now_ack_flag = CRC_NULL; while(esp_now_ack_flag == CRC_NULL){ delay(0); } if (esp_now_ack_flag == CRC_OK){ + data_count = 0; return true; } else { + data_count = 0; return false; }