jjcarstens
Nerves Core Team
Testing code destined for hardware can be tricky, but it just got one tiny bit easier!
:tty0tty was just released which is an Elixir port of the same C lib name. Why is that good? Well, it makes it easy to create a local serial port PTY that can be targeted for reads and writes. This effectively allows you to easily test code that may rely on serial ports (like Circuits.UART) without having to adjust your whole implementation!
Check out the documentation for more info!
Trending in News & Updates
LiveVue v1.0 released
After four release candidates and a lot of community feedback, LiveVue 1.0 is stable :tada:
I’ve built a dedicated...
New
Your standard application generally only tracks what is true right now. Updates overwrite previous data, and asking questions about the p...
New
<span class="hashtag-icon-placeholder"></span>let-me 3.0.4 has been released.
Changed
Log the policy module and the check module in the...
New
Flop Phoenix 0.27.0 has been released.
Changed
Require Flop 0.29.0, which turns Flop.Schema from a protocol into a
behaviour.
Determin...
New
Aludel 0.8.0 is now available on GitHub and Hex.
This release adds typed_judge assertions for evaluations that need deterministic, struc...
New
VitalAIze 0.3.0 is out. It puts your other machines on your team on the board, live. I changed the architecture and am using gRPC to stre...
New
Flop 0.29.0 has been released.
Added
Add Flop.allowed_fields/2, which returns the fields that may be filtered or
sorted for the given ...
New
Other Trending Topics
Edit: 2026 May 15 - This post is archived.
Mob is alive!!
Main docs: mob v0.7.11 — Documentation
A bit of explanation for the slightly c...
New
Hobbes is a low-level distributed database for the Elixir programming language.
Hobbes provides a simple, safe, and scalable storage lay...
New
A little off-topic, but I feel like people here have a good head on their shoulders.
I used to be quite good at making software. Was luc...
New
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #ai
- #podcasts-by-brainlid
- #ecto-query
- #blog-post
- #elixirconf-us
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #elixirconf-eu
- #api
- #forms
- #security
- #metaprogramming










Showing Posts 1 to 2- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
trarbr
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 areTTY0TTY.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
trarbr
Sorry, I just tested it again on MacOS, and now it seems to work the same as on Linux. I probably made a mistake due to my excitement
The following script works the same on MacOS and Linux: