Markus Korber |
Hi,
is it somehow possible to use luarpc and a standard Lua shell at the same time on two different physical UART ports? If I start the RPC server in the Lua shell (rpc.server()) it blocks the shell forever. However, I'd like to use the shell normally in addition to doing RPC calls from the PC. Thanks for your help! Regards, Markus Korber _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
Hi,
On Wed, Dec 14, 2011 at 5:07 PM, Markus Korber <[hidden email]> wrote: Hi, That is not possible at the moment. It could be implemented, but it may lead to some interesting concurrency problems :) Best, Bogdan
_______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
Thiago Naves |
You may wanna have a look at the rpc.peek / rpc.listen / rpc.dispatch functions:
http://www.eluaproject.net/doc/v0.8/en_refman_gen_rpc.html You'll not be able to use that with the shell but you can have an application running and send rpc commands at the same time... Best, Thiago On Wed, Dec 14, 2011 at 1:14 PM, Bogdan Marinescu <[hidden email]> wrote: Hi, _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
On Wed, Dec 14, 2011 at 12:19 PM, Thiago Naves <[hidden email]> wrote:
> You may wanna have a look at the rpc.peek / rpc.listen / rpc.dispatch > functions: > http://www.eluaproject.net/doc/v0.8/en_refman_gen_rpc.html > > You'll not be able to use that with the shell but you can have an > application running and send rpc commands at the same time... One could modify the shell to be non-blocking and have a common dispatcher handle input when its ready for either RPC or a shell command, but as bogdan mentions there could be some complexities to handle. > > > Best, > Thiago > > > > > On Wed, Dec 14, 2011 at 1:14 PM, Bogdan Marinescu > <[hidden email]> wrote: >> >> Hi, >> >> On Wed, Dec 14, 2011 at 5:07 PM, Markus Korber <[hidden email]> wrote: >>> >>> Hi, >>> >>> is it somehow possible to use luarpc and a standard Lua shell at the >>> same time on two different physical UART ports? If I start the RPC >>> server in the Lua shell (rpc.server()) it blocks the shell forever. >>> However, I'd like to use the shell normally in addition to doing RPC >>> calls from the PC. >> >> >> That is not possible at the moment. It could be implemented, but it may >> lead to some interesting concurrency problems :) >> >> Best, >> Bogdan >> >>> >>> >>> Thanks for your help! >>> >>> Regards, >>> Markus Korber >>> _______________________________________________ >>> eLua-dev mailing list >>> [hidden email] >>> https://lists.berlios.de/mailman/listinfo/elua-dev >> >> >> >> _______________________________________________ >> eLua-dev mailing list >> [hidden email] >> https://lists.berlios.de/mailman/listinfo/elua-dev >> > > > _______________________________________________ > eLua-dev mailing list > [hidden email] > https://lists.berlios.de/mailman/listinfo/elua-dev > eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
Free forum by Nabble | Edit this page |