TheThingsNetwork / arduino-device-lib

Arduino Library for TTN Devices
MIT License
207 stars 96 forks source link

Provide (an enum and) defines for success/error codes #133

Closed FokkeZB closed 7 years ago

FokkeZB commented 7 years ago

Currently sendBytes() returns various integers as success/error codes. We should provide defines so that the user don't need to know the exact integer.

#define TTN_ERROR_COMMANDFAILED -1
// etc

It would be nice to also have an enum with these values so that we can be clear on what the method can return.