diff --git a/microRESTCli.py b/microRESTCli.py index c9286e0..78edf96 100755 --- a/microRESTCli.py +++ b/microRESTCli.py @@ -4,7 +4,11 @@ """ from microWebCli import MicroWebCli -from time import gmtime, mktime +try : + from time import gmtime +except : + from time import localtime as gmtime # Correct error where gmtime doesn't exist in ESP32 module +from time import mktime class MicroRESTCli :