This namespace defines common errors that can be returned by some FastArduino API methods, e.g.
More...
This namespace defines common errors that can be returned by some FastArduino API methods, e.g.
devices::rf::NRF24L01. New errors will be added here as required. These definitions are similar to standard C errno.h
; however, please note that FastArduino does not define a global errno
, as in standard C, to store the last occurred error. The error constants defined here are directly returned, as int
, by some methods in FastArduino API. Also, only error codes potentially returned by FastArduino API are defined here.
By convention, in order to allow methods to return sizes (positive int
) and report errors at the same time, all errors defined must be strictly negative.