Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Renames location to waypoint to fix test scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
r-oung committed Mar 14, 2020
1 parent f8f26e7 commit d85f900
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions test/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@ def on_message(client, log_filename, message):
client.publish('temi/00119452440/status/info', json.dumps({
'timestamp': datetime.now().strftime("%Y%m%d_%H%M%S"),
'battery_percentage': 50,
'locations': ['home base', 'a', 'b', 'c'],
'waypoint_list': ['home base', 'a', 'b', 'c'],
}), qos=0)
time.sleep(1)

print("[{}] Publish Status".format(datetime.now().strftime("%Y%m%d_%H%M%S")))
client.publish('temi/00119462420/status/info', json.dumps({
'timestamp': datetime.now().strftime("%Y%m%d_%H%M%S"),
'battery_percentage': 95,
'locations': ['home base', 'd', 'e', 'f'],
'waypoint_list': ['home base', 'd', 'e', 'f'],
}), qos=0)
time.sleep(1)

Expand All @@ -97,14 +97,14 @@ def on_message(client, log_filename, message):
client.publish('temi/00119452440/command/move/forward', json.dumps({
'timestamp': datetime.now().strftime("%Y%m%d_%H%M%S"),
'battery_percentage': 50,
'locations': ['home base', 'a', 'b', 'c'],
'waypoint_list': ['home base', 'a', 'b', 'c'],
}), qos=0)
time.sleep(1)

print("[{}] Publish Command".format(datetime.now().strftime("%Y%m%d_%H%M%S")))
client.publish('temi/00119452440/command/move/backward', json.dumps({
'timestamp': datetime.now().strftime("%Y%m%d_%H%M%S"),
'battery_percentage': 95,
'locations': ['home base', 'd', 'e', 'f'],
'waypoint_list': ['home base', 'd', 'e', 'f'],
}), qos=0)
time.sleep(1)
3 changes: 2 additions & 1 deletion test/test_listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
CLIENT_ID = 'test-listener'

# MQTT broker
MQTT_BROKER_HOST = '192.168.0.118'
MQTT_BROKER_HOST = 'localhost'
# MQTT_BROKER_HOST = '192.168.0.118'
MQTT_BROKER_PORT = 1883

# connection parameters
Expand Down

0 comments on commit d85f900

Please sign in to comment.