uart.recv

classic Classic list List threaded Threaded
3 messages Options
Dado Sutter Dado Sutter
Reply | Threaded
Open this post in threaded view
|

uart.recv

What is the 3rd parameter of uart.recv ?
Can't remember now (although I've used it before :) and the doc only
mentions 1st and 2nd.

Thanks
Best
Dado
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.berlios.de/pipermail/elua-dev/attachments/20081201/c94e5188/attachment.html 

BogdanM BogdanM
Reply | Threaded
Open this post in threaded view
|

uart.recv

That's a documentation bug, sorry about that. Still, the source code makes
it pretty clear:

// Lua : data = recv( id, timer_id, timeout )
static int uart_recv( lua_State *L )
{
...
}

Best,
Bogdan

On Mon, Dec 1, 2008 at 3:43 PM, Dado Sutter <dadosutter at gmail.com> wrote:

> What is the 3rd parameter of uart.recv ?
> Can't remember now (although I've used it before :) and the doc only
> mentions 1st and 2nd.
>
> Thanks
> Best
> Dado
>
>
> _______________________________________________
> Elua-dev mailing list
> Elua-dev at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/elua-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.berlios.de/pipermail/elua-dev/attachments/20081202/c2134acd/attachment.html 

Dado Sutter Dado Sutter
Reply | Threaded
Open this post in threaded view
|

uart.recv

Nope :-o
   It was me again that was not clear.
   The problem is neither with the doc nor with the implementation code.
   Your led.lua and pwmled.lua examples, uses uart.recv() with three
parameters and this has confused me.

Best
Dado


On Tue, Dec 2, 2008 at 05:55, Bogdan Marinescu
<bogdan.marinescu at gmail.com>wrote:

> That's a documentation bug, sorry about that. Still, the source code makes
> it pretty clear:
>
> // Lua : data = recv( id, timer_id, timeout )
> static int uart_recv( lua_State *L )
> {
> ...
> }
>
> Best,
> Bogdan
>
> On Mon, Dec 1, 2008 at 3:43 PM, Dado Sutter <dadosutter at gmail.com> wrote:
>
>> What is the 3rd parameter of uart.recv ?
>> Can't remember now (although I've used it before :) and the doc only
>> mentions 1st and 2nd.
>>
>> Thanks
>> Best
>> Dado
>>
>>
>> _______________________________________________
>> Elua-dev mailing list
>> Elua-dev at lists.berlios.de
>> https://lists.berlios.de/mailman/listinfo/elua-dev
>>
>>
>
> _______________________________________________
> Elua-dev mailing list
> Elua-dev at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/elua-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.berlios.de/pipermail/elua-dev/attachments/20081203/e57b0838/attachment.html