rename external_call to send_status_update

This commit is contained in:
Marco Zeisler 2021-05-15 17:53:10 +02:00
parent 220f4674e5
commit 903d48806e

View File

@ -158,7 +158,7 @@ class Vehicle:
self.driving = True self.driving = True
while self.driving: while self.driving:
self.check_reset() self.check_reset()
self.external_call() self.send_status_update()
time.sleep(UPDATE_INTERVAL) time.sleep(UPDATE_INTERVAL)
def stop_driving(self): def stop_driving(self):
@ -182,7 +182,7 @@ class Vehicle:
self.nce = False self.nce = False
@circuit(failure_threshold=10, expected_exception=ConnectionError) @circuit(failure_threshold=10, expected_exception=ConnectionError)
def external_call(self): def send_status_update(self):
# TODO inform the message broker about the current status # TODO inform the message broker about the current status
print(v1.driven_kms, '\t', v1.daf) print(v1.driven_kms, '\t', v1.daf)