I need to make a function in python so that when I call the function with the argument, it should send serial command but I am not sure if I am writing the function in my program in the right way. Is there anything missing ?
# Send command
# Read line
bs = ser.readline()
I need to call the function latter in the code