Difference: SolutionsToRealTimeClockAndDataLogging (1 vs. 2)

Revision 22020-05-25 - UliRaich

Line: 1 to 1
 
META TOPICPARENT name="Solutions"

Solutions to Exercise 9: Real Time Clock and Data Logging

Added:
>
>

Exercise 1:

 
Changed:
<
<
Article text.
>
>
Since connecting to the Internet through WiFi is a very common task, we develop a module doing only this. The module can be put into the /lib directory on the ESP32 (or even better: frozen into the binary of MicroPython) making it available also for later exercises.

Here is a program connecting to the Internet through WiFi. You will have to modify it in order to adapt it to your WiFi SSID and password.

https://iotworkshop.africa/pub/IoT_Course_English/SolutionsToRealTimeClockAndDataLogging/wifi_connect_UCC.py.txt

... and this is how to access it and what it will print as answers:

wifi_connect_print.png

Exercise 2:

Sometimes you may not have access to WiFi but you want to set the time nevertheless. Then the solution to exercise 2 comes in handy:

https://iotworkshop.africa/pub/IoT_Course_English/SolutionsToRealTimeClockAndDataLogging/esp32RTC.py.txt

The exercise sheet already shows how to use the program

  -- Uli Raich - 2020-05-06
Line: 10 to 26
 
<--/commentPlugin-->
Changed:
<
<
META FILEATTACHMENT attachment="esp32RTC.py.txt" attr="" comment="" date="1588795527" name="esp32RTC.py.txt" path="esp32RTC.py.txt" size="4603" user="UliRaich" version="1"
>
>
META FILEATTACHMENT attachment="esp32RTC.py.txt" attr="" comment="" date="1590402547" name="esp32RTC.py.txt" path="esp32RTC.py.txt" size="4602" user="UliRaich" version="2"
META FILEATTACHMENT attachment="wifi_connect_UCC.py.txt" attr="" comment="" date="1590402547" name="wifi_connect_UCC.py.txt" path="wifi_connect_UCC.py.txt" size="2084" user="UliRaich" version="1"
META FILEATTACHMENT attachment="dayOfWeek.py.txt" attr="" comment="" date="1590402547" name="dayOfWeek.py.txt" path="dayOfWeek.py.txt" size="1738" user="UliRaich" version="1"
META FILEATTACHMENT attachment="wifi_connect_print.png" attr="" comment="" date="1590406391" name="wifi_connect_print.png" path="wifi_connect_print.png" size="43254" user="UliRaich" version="2"

Revision 12020-05-06 - UliRaich

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="Solutions"

Solutions to Exercise 9: Real Time Clock and Data Logging

Article text.

-- Uli Raich - 2020-05-06

Comments

<--/commentPlugin-->

META FILEATTACHMENT attachment="esp32RTC.py.txt" attr="" comment="" date="1588795527" name="esp32RTC.py.txt" path="esp32RTC.py.txt" size="4603" user="UliRaich" version="1"
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback