UART Application#42
Conversation
Signed-off-by: Vineela Tummalapalli <vineela.tummalapalli@intel.com>
|
Did not test it yet. Will test with local aars because the new version of aar with these changes is not yet out. |
| { | ||
| try { | ||
| while (true) { | ||
| if (!mhz16.getData()) { |
There was a problem hiding this comment.
Does getData block() ?
A blocking call to the data fetch routine or a poll() would be much better than a read/sleep for the uart. Bonus points if we can do this with interrupts.
There was a problem hiding this comment.
There are few UART drivers which do open(), read() etc., calls for uart from UPM rather than calling MRAA api's.
This gas sensor is doing the same because of which i see open of /dev/tty1 failed: Permission denied. Out of 13 UAR sensor drivers, there are 7 drivers in UPM which does the same. Will have to talk to UPM team about this and fix it accordingly.
Meanwhile, i will try to get another sensor and write an example with it
|
Raised an issue in UPM github. |
Signed-off-by: Vineela Tummalapalli vineela.tummalapalli@intel.com