def send_identity(self):
service_name = {'<STR_LIT>': self.messaging._service_name}<EOL>service_name = _json.dumps(service_name).encode('<STR_LIT:utf8>')<EOL>identify_frame = (b'<STR_LIT>',<EOL>b'<STR_LIT>',<EOL>_json.dumps([]).encode('<STR_LIT:utf8>'),<EOL>service_name)<EOL>if self.messaging._run_control_loop:<EOL><INDENT>send = self.messaging.command_socket.send_multipart<EOL>self.messaging.add_callback(send, identify_frame)<EOL><DEDENT>else:<EOL><INDENT>self.messaging.command_socket.send_multipart(identify_frame)<EOL><DEDENT>self.logger.info('<STR_LIT>',<EOL>self.messaging._service_name)<EOL>if self.identity_callback:<EOL><INDENT>self.identity_callback()<EOL><DEDENT>
Send the identity of the service.