def ArtNetConfigureReply(state, response): reply = ArtNetConfigMessages_pb2.Reply() reply.ParseFromString(response) print('Short Name: %s' % reply.options.short_name) print('Long Name: %s' % reply.options.long_name) print('Subnet: %d' % reply.options.subnet) wrapper.Stop()
def ArtNetConfigureReply(status, response): if status.Succeeded(): reply = ArtNetConfigMessages_pb2.Reply() reply.ParseFromString(response) print('Short Name: %s' % reply.options.short_name) print('Long Name: %s' % reply.options.long_name) print('Subnet: %d' % reply.options.subnet) else: print('Error: %s' % status.message, file=sys.stderr) global wrapper if wrapper: wrapper.Stop()