diff --git a/docs/LearningProcessBram/ArduinoExperience/NodeWithWebConnection.md b/docs/LearningProcessBram/ArduinoExperience/NodeWithWebConnection.md index 6fb2487..2a16cf3 100644 --- a/docs/LearningProcessBram/ArduinoExperience/NodeWithWebConnection.md +++ b/docs/LearningProcessBram/ArduinoExperience/NodeWithWebConnection.md @@ -22,4 +22,31 @@ After the wifi is connected it sends a print to indicate a connection and pings The websocket connection which was then made is made using the uri, port, and type of connection. In case of websocket events it gets sent. -In case of connection failiure, try this. \ No newline at end of file +In case of connection failiure, try this. + +#### The loop +We start with setting a timer because a "delay" function would break the connection with the websocket resulting in an error. + +This relates back to some some variables that were made in the beginning. + +We make variables for the different results we are gathering, so these can be used later. + +Then the variables get printed for overview. + +To ensure the websocket connection , the process gets looped. + +#### Update File. +Here the text thathas te be sent to the websocket gets sent. + +### The fysical product. +it is shown here: +![fysical1](<../documentatie/assets/DHT11 state 1.jpg>) +It also turns on: +![fysical2](<../documentatie/assets/DHT11 state 2.jpg>) + +Here are my fritzing and wireframe, the components used are shown but The DHT11 is replaced by a DHT22. +![alt text](../documentatie/assets/DHT11_by_button_fritzing.png) +![alt text](../documentatie/assets/DHT11_by_button_wireframe.png) + +### The code. +Here the c++ code is shown: diff --git a/docs/LearningProcessBram/ArduinoExperience/image.png b/docs/LearningProcessBram/ArduinoExperience/image.png new file mode 100644 index 0000000..6a0ce4a Binary files /dev/null and b/docs/LearningProcessBram/ArduinoExperience/image.png differ