From 9b4cbd6883d7d3bcb0f34ea9c2e2fd3510ba0c4b Mon Sep 17 00:00:00 2001 From: Pierrick C Date: Fri, 27 Mar 2020 22:53:00 +0100 Subject: [PATCH] Add refresh param in config file Put functions def in separate file "main_lib" --- code/config_template.py | 2 ++ code/lib/main_lib.mpy | Bin 0 -> 655 bytes code/lib/main_lib.py | 40 +++++++++++++++++++++++++++++++++++ code/main.py | 45 +++++++--------------------------------- 4 files changed, 49 insertions(+), 38 deletions(-) create mode 100644 code/lib/main_lib.mpy create mode 100644 code/lib/main_lib.py diff --git a/code/config_template.py b/code/config_template.py index 0ef83e8..ad44e4a 100644 --- a/code/config_template.py +++ b/code/config_template.py @@ -12,4 +12,6 @@ MQTT_PASSWD = "passwd" WIFI_SSID = "my_wifi_ssid" WIFI_PSK = "my_wifi_wpa_key" +REFRESH_RATE = 5 + ALTITUDE = 150 diff --git a/code/lib/main_lib.mpy b/code/lib/main_lib.mpy new file mode 100644 index 0000000000000000000000000000000000000000..6e63a718dbcdf8efacfb2b1bd72fec91e9369373 GIT binary patch literal 655 zcmX|9-EI;=7@cJ;T@lE-tQ#XWY$d4+F$EFUgm_`0F*Qn41XH8vCQ>epxD8dz0q6FbHT4>!F}?=?;H zE^_EO2)cQJVjC$OyJc+?9%5(ta1cFp$4872A0tR!M8Hsdy-I;4%6>Vh9gW4yAbfxcOM_E+zwJ|MSHkW z+R#eHnpQ6D04XC2`>(flB|ew#^|y?dFLdtvTuz&i;uG{n=LU0GAkcJl@Z-vOwF7=$ z2XE!Hg`jI89sF9%es4Dd3HZfCJ=A7loM&;VCkCyXfs~g8Y>k+dkqRbD8d*Bn{(BzQ z@vJU9Ek0;1&gU|xgSHSk-UuBb4+KK6mGsCF$?nDjQV-mTW37{WVRUuriCsq}69^Hq z5aZS&&T(lhu7tP$-K}-8kPq&wpvcLfKa)kvq$pg94th@kjeRs6@z zYAwWCgoa;_u<19Js7Lta^PdY&DXs<&)B;k$OwM}o28v16MPySu!4S=I5{&k0U`tF< z*Te8qpMtrV9wW*=%$1ltcFDCqO$?-lERqpIo?(*(+eMcpOUK2xvNj^b{D3l