test
This commit is contained in:
parent
10a7712948
commit
4765690f8e
@ -72,7 +72,11 @@ def run():
|
|||||||
car_soc = subscribe(client, topic_car_soc)
|
car_soc = subscribe(client, topic_car_soc)
|
||||||
charge_point_power = subscribe(client, topic_charge_point_power)
|
charge_point_power = subscribe(client, topic_charge_point_power)
|
||||||
|
|
||||||
try:
|
monitor(charge_point_power)
|
||||||
|
|
||||||
|
|
||||||
|
def monitor(charge_point_power)
|
||||||
|
try:
|
||||||
logging.info("epd2in13b_V3 Demo")
|
logging.info("epd2in13b_V3 Demo")
|
||||||
|
|
||||||
epd = epd2in13b_V3.EPD()
|
epd = epd2in13b_V3.EPD()
|
||||||
@ -108,10 +112,10 @@ try:
|
|||||||
logging.info("Goto Sleep...")
|
logging.info("Goto Sleep...")
|
||||||
epd.sleep()
|
epd.sleep()
|
||||||
|
|
||||||
except IOError as e:
|
except IOError as e:
|
||||||
logging.info(e)
|
logging.info(e)
|
||||||
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
logging.info("ctrl + c:")
|
logging.info("ctrl + c:")
|
||||||
epd2in13b_V3.epdconfig.module_exit()
|
epd2in13b_V3.epdconfig.module_exit()
|
||||||
exit()
|
exit()
|
||||||
|
Loading…
Reference in New Issue
Block a user