Search found 3 matches

by shelladdicted
Fri Jun 08, 2018 4:21 pm
Forum: ESP-IDF
Topic: Getting the uptime
Replies: 9
Views: 45514

Re: Getting the uptime

esp_timer_get_time returns 64-bit time since startup, in microseconds. Oh, now that IS useful! - now I wish I hadn't just spent the last hour implementing the exact same thing :) By my calculations that should last for about 584,000 years before overflow. Should be sufficient for most IoT applicati...
by shelladdicted
Sun Dec 31, 2017 7:26 pm
Forum: General Discussion
Topic: uart_read_bytes
Replies: 5
Views: 15425

Re: uart_read_bytes

In your original post you asked if we waited or returned immediately when the "length" bytes were available. I think you shouldn't discount a third option which I believe may also exist ... that it returns immediately if LESS than "length" bytes are available but at least 1 byte. For example, if th...
by shelladdicted
Fri Dec 29, 2017 11:42 pm
Forum: General Discussion
Topic: uart_read_bytes
Replies: 5
Views: 15425

uart_read_bytes

Hi, int uart_read_bytes(uart_port_t uart_num, uint8_t *buf, uint32_t length, TickType_t ticks_to_wait) Docs is not clear enough, this function return only after that ticks_to_wait (aka 20 / portTICK_RATE_MS)[/code] are passed? or can return as soon length bytes are available (before that ticks_to_wa...