Live data from Hacker News

Cross-compiled Erlang, Elixir, and LFE for Embedded Devices

nerves-project.org

11–14 of 14 posts

Re: Cross-compiled Erlang, Elixir, and LFE for Embedded Devices

#11

I was looking for something like this for a project that involve IoT device and need near real time feedback. One thing that isn't clear to me is what should be used to communicate between the devices and servers? Having no experience with it (and having background in Node.js), websockets sounded like a way to go at first but I didn't see it mentioned much in that context, on the other hand I heard about few projects…

If it's okay to lose an update or two every now and then, you can send individual UDP packets with something like JSON or MessagePack in them. Otherwise use a raw TCP socket. No need for a framework and HTTP just to communicate.

For bigger systems, RabbitMQ is pretty nice.

Re: Cross-compiled Erlang, Elixir, and LFE for Embedded Devices

#14
post #12

I'd love to see this for the Raspberry Pi as well (the hardware's a fair bit more popular)

Frank's been doing all his latest work on the Raspberry Pi, actually. In fact, that's what he tested the new LFE support on :-)

That's grand. I can't see an image for it anywhere, though...

(edit: found the instructions for it on the SDK)

Post reply on HN