我已经创建了工作工作人员,它在:elixir_serial处理程序中从Arduino获得消息,但是现在我想在Channel中使用它来广播接收到的数据,我可以将套接字注入到:elixir_serial handle_infodefmodule MyApp.Serialport do use GenServerGenServer.start_link9600)
Serial.connect(
我仍然在试图把我的头脑围绕着Genserver,在我开始编写一个程序/应用程序之前,我只想在iex中做一些简单的实验,但我不知道如何开始。我已经尝试输入elixir_serial自述文件中建议的代码:# do somethingwith the data无论是在iex (封装在一个防御模块MySerial do end块中)中还是在m
如何发送消息到远程ElixirGenServer,然后使用接收调用结果{result1, result2} = GenServer.call(MyModule.NodeNamereturn 3; ei_x_free(&request);
// code makes it to here, but there's no indication that the genserver