Keep all serial port calls on the one thread.
Compile libwebsockets for iOS.