def ipc_service_topic_router()

in src/main.py [0:0]


    def ipc_service_topic_router(self, message_id, reqres, command, message):
        '''
            Route IPC PubSub messages to this components IPC Service topic.
            
            Here you can route messages to this or an external module based on the 
            increasingly specific detail provided in the request/response 
            and command message fields as prescribed in this AWS Greengrass SDK
            (see pubsub_message.py).

            In this example we just route to a message processor based on request/response type. 
        '''

        if reqres == 'request':
            self.ipc_service_topic_request(message_id, command, message)

        elif reqres == 'response':
            self.ipc_service_topic_response(message_id, command, message)