This looks super useful - thank you so much
I had to try it out immediately. Here are my first impressions:
TTY0TTY.open("/tmp/some-device-name")creates two files (or TTYs or whatever they are
) on disk, “/tmp/some-device-name” and “/tmp/some-device-name-twin”. Bytes written to the first one will be received on the second one, and vice versa. This means they can be opened from another OS process on the system, so it’s not only useful for unit tests. Very useful when doing “exploratory testing” on a system that doesn’t have the hardware to open the serial ports. I love it.- On Linux I can use
TTY0TTY.opento create the two TTYs, and open each of them with their ownCircuits.UARTprocess, and then I can useCircuits.UART.writeto send data back and forth between the two processes. But this does not seem to work on MacOS. On MacOS I can useFile.writeto send data to aCircuits.UARTprocess, but seemingly only in one direction. Do you know if this is something that could be made to work on MacOS eventually? I noticed the C code mentions Linux explicitly. I will be happy to provide more details if what I wrote is not clear.
Thank you for this ![]()






















