merge Position changer into main for report #11

Merged
SemvdH merged 83 commits from position_changer into main 2023-05-26 21:15:20 +00:00
Showing only changes of commit ac79ba7d76 - Show all commits

View File

@@ -105,11 +105,15 @@ class ApiListener(Node):
def send_available_commands(self):
print('Sending available commands')
requestcommands = {}
messagetypes = {}
result = {}
for command in RequestCommand:
result[command.name] = command.value
requestcommands[command.name] = command.value
for message_type in ResponseMessage:
result[message_type.name] = message_type.value
messagetypes[message_type.name] = message_type.value
result['request_commands'] = requestcommands
result['response_messages'] = messagetypes
self.message_queue.append(json.dumps(
{'type': ResponseMessage.ALL_REQUESTS_RESPONSES.name, 'data': result}))