diff --git a/docs/assets/Node.fzz b/docs/assets/Node.fzz new file mode 100644 index 0000000..98254c7 Binary files /dev/null and b/docs/assets/Node.fzz differ diff --git a/docs/assets/Node.png b/docs/assets/Node.png new file mode 100644 index 0000000..a197a40 Binary files /dev/null and b/docs/assets/Node.png differ diff --git a/docs/node-documentation/node.md b/docs/node-documentation/node.md index 3acfcfa..ac987a8 100644 --- a/docs/node-documentation/node.md +++ b/docs/node-documentation/node.md @@ -19,20 +19,23 @@ The node is programmed using the Arduino IDE. The code is written in C++ and is The following libraries are used in the node code: -- -- -- -- -- -- -- +- Wire.h +- Adafruit_SH110X.h +- Adafruit_SGP30.h +- DHT.h +- WiFiMulti.h +- WiFi.h +- WebSocketsClient.h +- nodeCodeHeader.h ### Code The code is divided into the following classes: -uitleg dano +- Node readings +- Websockets + +The two classes that are used are split into the 2 becouse the node readings handels everything about reading information from the sensors and displaying them on the screen, all the local stuff is handeled here so to speak. And into Websockets this handels every thing from connecting to the wifi to sending the data that is recorded from the sensors into json format and sending that data to the websockets so that the data can be prossed over there. ### Communication @@ -63,6 +66,13 @@ The wiring diagram for the node is as follows: ![Wiring diagram of node](docs\assets\imagesSp3\wiringDiagramNode.png) + +### Fritsing Diagram + +![fritsing diagram of node](docs\assets\Node.fzz) + +![fritsing diagram of node](docs\assets\Node.png) + ## Future Improvements The node is currently working as intended, but there are some improvements that could be made: