The solution turned out to be that I created the serial object ser as a global variable… the solution is found in this forum post
Creating the serial object inside of my serial_write() function and closing the port after sending data works!
The solution turned out to be that I created the serial object ser as a global variable… the solution is found in this forum post
Creating the serial object inside of my serial_write() function and closing the port after sending data works!